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

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




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




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




4. Which of the following data structure is a linear type?




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




6. The depth of a complete binary tree is given by




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




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




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




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




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




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




13. An algorithm that calls itself directly or indirectly is known as




14. 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




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




16. In a Heap tree




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




18. A connected graph T without any cycles is called




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




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




21. Two main measures for the efficiency of an algorithm are




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




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




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




25. Which of the following case does not exist in complexity theory




26. The Worst case occur in the linear search algorithm when




27. The Average case occur in the linear search algorithm




28. The complexity of the average case of an algorithm is




29. The complexity of the linear search algorithm is




30. The complexity of Binary search algorithm is




31. The complexity of Bubble sort algorithm is




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




33. 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




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




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




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




37. The total number of comparisons in a bubble sort is




38. The dummy header in the linked list contains




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




40. 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