Data Structures and Algorithms-I MCQs

Page No. 28

Which of the following is not true?


aTrie requires less storage space than hashing

✓


bTrie allows listing of all the words with same prefix

✖


cTries are collision free

✖


dTrie is also known as prefix tree

✖



Which of the following special type of trie is used for fast searching of the full texts?


aCtrie

✖


bHash tree

✖


cSuffix tree

✓


dT tree

✖


View Answer Suffix tree

Which of the following is the efficient data structure for searching words in dictionaries?


a BST

✖


bLinked List

✖


cBalancded BST

✖


dTrie

✓


View Answer Trie

What traversal over trie gives the lexicographical sorting of the set of the strings?


apostorder

✖


bpreorders

✖


cinorder

✓


dlevel order

✖


View Answer inorder

Trie is also known as _________


aDigital Tree

✓


bTreap

✖


cBinomial Tree

✖


d2-3 Tree

✖


View Answer Digital Tree

What is a time complexity for checking a string of length n is substring or not?


aO (log n!)

✖


bO (n!)

✖


cO (2n)

✖


dO (n)

✓


View Answer O (n)

Which tree allows fast implementation of a set of string operation?


aRope Tree

✖


bTango Tree

✖


cGeneralized Suffix Tree

✓


dTop Tree

✖



Can the two edges that are coming out of a node have labels of string beginning with the same character?


aTrue

✖


bFalse

✓


cNone of the given options

✖


deither true either false

✖


View Answer False

Do all the nodes have at least two children in suffix tree.


aTrue

✖


bFalse

✓


cNone of the given options

✖


deither true either false

✖


View Answer False

Which statement is correct of suffix tree with a string of length n?


aThe tree has n leaves.

✓


bThe tree has n roots

✖


cHeight of Tree is n

✖


dDepth of tree is n

✖



Goto Page No.

Page 28 of 53

Alphabetical MCQs Categories
—

Here below You find all kind of categories of MCQs in alphabetical order.


"Comprehensive Collection of MCQs: Alphabetically Organized by Subject"
—

"Discover an extensive collection of multiple-choice questions (MCQs) neatly categorized by subject from A to Z. This resource is designed for anyone eager to explore various topics in a straightforward and organized manner. Whether you're a student preparing for exams, an educator seeking supplementary materials, or simply curious about different subjects, this compilation offers a convenient way to learn and assess your knowledge. With questions arranged alphabetically, navigation is effortless, allowing you to delve into subjects of interest at your own pace. Engage, learn, and expand your understanding with this accessible and comprehensive repository of MCQs!"


BolPakistan

bolpakistan.com.pk includes Job Mcqs and Pak Mcqs is the Top Largest Mcqs Forum in World, in which you can read Mcqs of All Subjects, PPSC test preparation, FPSC, NTS and PPSC PAST PAPERS, PPSC PAST MCQS. A Collection of Repeated MCQs for JOBs seekers.

Copyright © 2024, Designed & Developed by BolPakistan