Data structure MCQ Quiz Hub

Data Structure Multiple Choice Questions and Answers

Choose a topic to test your knowledge and improve your Data structure skills

Which data structure allows deleting data elements from front and inserting at the rear?





✅ Correct Answer: 2

Identify the data structure which allows deletions at both ends of the list but insertion at only one ending.





✅ Correct Answer: 1

Which of the following data structure is non-linear type?





✅ Correct Answer: 4

Which of the following data structure is a linear type?





✅ Correct Answer: 4

To represent the hierarchical relationship between elements, which data structure is suitable?





✅ Correct Answer: 3

The depth of a complete binary tree is given by





✅ Correct Answer: 4

When representing an algebraic expression E which uses only binary operations in a 2-tree,





✅ Correct Answer: 1

A binary tree can easily be converted into q 2-tree





✅ Correct Answer: 4

A binary tree can easily be converted into q 2-tree





✅ Correct Answer: 4

When converting a binary tree into an extended binary tree, all the original nodes in the binary tree are





✅ Correct Answer: 1

The post-order traversal of a binary tree is DEBFCA. Find out the pre-order traversal





✅ Correct Answer: 3

Which of the following sorting algorithm is of divide-and-conquer type?





✅ Correct Answer: 3

An algorithm that calls itself directly or indirectly is known as





✅ Correct Answer: 2

In a binary tree, certain null entries are replaced by special pointers which point to nodes higher in the tree for efficiency. These special pointers are called





✅ Correct Answer: 4

The in order traversal of the tree will yield a sorted listing of elements of tree in





✅ Correct Answer: 2

In a Heap tree





✅ Correct Answer: 2

In a graph, if e=[u, v], Then u and v are called





✅ Correct Answer: 4

A connected graph T without any cycles is called





✅ Correct Answer: 4

In a graph, if e=(u, v) means





✅ Correct Answer: 4

. If every node u in G is adjacent to every other node v in G, A graph is said to be





✅ Correct Answer: 2

Two main measures for the efficiency of an algorithm are





✅ Correct Answer: 3

The time factor when determining the efficiency of the algorithm is measured by





✅ Correct Answer: 2

The space factor when determining the efficiency of the algorithm is measured by





✅ Correct Answer: 1

The space factor when determining the efficiency of the algorithm is measured by





✅ Correct Answer: 1

Which of the following case does not exist in complexity theory





✅ Correct Answer: 4

The Worst case occur in the linear search algorithm when





✅ Correct Answer: 4

The Average case occur in the linear search algorithm





✅ Correct Answer: 1

The complexity of the average case of an algorithm is





✅ Correct Answer: 1

The complexity of the linear search algorithm is





✅ Correct Answer: 1

The complexity of Binary search algorithm is





✅ Correct Answer: 2

The complexity of Bubble sort algorithm is





✅ Correct Answer: 3

In a Stack, the command to access an nth element from the top of the stack s will be





✅ Correct Answer: 1

If yyy, xxx and zzz are the elements of a lexically ordered binary tree, then in pre-order traversal which node will be traverse first





✅ Correct Answer: 1

In a balanced binary tree, the height of two subtrees of every node can not differ by more than





✅ Correct Answer: 2

The result of eval u at ing prefix expression */b+-dacd, where a = 3, b = 6, c = 1, d = 5 is





✅ Correct Answer: 3

In an array rep re sensation of the binary tree, the right child of the root will be at the location of





✅ Correct Answer: 3

The total number of comparisons in a bubble sort is





✅ Correct Answer: 1

The dummy header in the linked list contains





✅ Correct Answer: 1

Write the output of the fol low ing program: int a[] = {1,2,3}*P;





✅ Correct Answer: 2

If the out-degree of every node is exactly equal to M or 0 and the number of nodes at level K is Mk-1 [con sider root at level 1], the tree is called as(i) Full m-ary try (ii) Complete m-ary tree (iii)Positional m-ary tree





✅ Correct Answer: 3