Smart Future Point

Data Structure MCQ

1.Which of the following data structures uses LIFO (Last In First Out) order?



2. What is the time complexity of accessing an element in an array?



3. Which of the following is not a linear data structure?



4. In a binary tree, the maximum number of nodes at level 'l' is:



5. Which of the following data structures is used for implementing recursion?



6. What is the worst-case time complexity of searching for an element in a balanced binary search tree?


7. Which of the following is a characteristic of a queue?


8. In a doubly linked list, each node contains:


9. Which of the following sorting algorithms has the best average-case time complexity?


10. What is the primary purpose of a hash table?


11. Which of the following is a characteristic of a binary search tree?


12. What is the time complexity of inserting an element in a linked list?


13. Which of the following data structures is used to implement a priority queue?


14. What is the space complexity of a binary tree with 'n' nodes?


15. Which of the following is true about a circular linked list?

16. Which of the following algorithms is used for finding the shortest path in a graph?


17. In a max heap, the value of each node is:


18. Which of the following is not a characteristic of a stack?


19. What is the time complexity of deleting an element from a binary search tree?


20. Which of the following is a disadvantage of using a linked list?


21. Which data structure is used to convert infix to postfix expression?


22. What is the worst-case time complexity of linear search?


23. Which data structure allows insertion and deletion at both ends?


24. What is the height of a binary tree with a single node?


25. Which traversal is used to get the prefix expression of an expression tree?


26. What does DFS stand for in graph algorithms?


27. Which sorting algorithm is considered the fastest in practice for average cases?


28. What does the term ‘overflow’ refer to in data structures?


29. What is the auxiliary space complexity of merge sort?


30. Which data structure is typically used for implementing undo functionality?


31. What is the time complexity of accessing an element in a hash table?


32. Which data structure is used for implementing recursion internally?


33. Which traversal method is used for breadth-first traversal in a tree?


34. In which case will a binary search be most efficient?


35. Which data structure is used in Dijkstra’s shortest path algorithm?


36. Which algorithm technique does Merge Sort follow?


37. What is the maximum number of nodes in a binary tree of height h?


38. Which of the following data structures can be used to detect a cycle in a graph?


39. What is the in-order traversal of a binary search tree?


40. Which of the following is true for a queue?


41. Which data structure is best suited for implementing LRU cache?


42. What is the height of an empty tree?


43. Which sorting algorithm is best suited for nearly sorted arrays?


44. What is the worst-case time complexity of Quick Sort?


45. What does FIFO stand for in data structures?


46. Which of the following is not a linear data structure?


47. Which traversal technique is used in depth-first search of a graph?


48. Which data structure allows constant time insertion and deletion at both ends?


49. What is the time complexity of inserting an element in a heap?


50. Which data structure is best suited for implementing undo functionality?


Data Structure Short Questions

1. What is a Stack?

2. What is a Queue?

3. What is a Linked List?

4. What is a Binary Tree?

5. What is a Hash Table?

6. What is a Graph?

7. What is a Tree?

8. What is a Heap?

9. What is a Trie?

10. What is a Dynamic Array?

11. What is a Binary Tree?

12. What is a Circular Queue?

13. Define Stack Overflow.

14. What is a Doubly Linked List?

15. Define Time Complexity.

16. What is a Deque?

17. What is the use of a Priority Queue?

18. Define AVL Tree.

19. What is a Red-Black Tree?

20. What is the difference between BFS and DFS?

21. What is a Hash Function?

22. What is Collision in Hashing?

23. What is the purpose of a Sentinel Node?

24. Define Graph Traversal.

25. What is an Adjacency Matrix?

26. Define Sparse Matrix.

27. What is the use of Recursion in Data Structures?

28. What is Memoization?

29. What is a Circular Linked List?

30. Define Queue Overflow.

31. What is a Tree Traversal?

32. Define Preorder Traversal.

33. What is Inorder Traversal?

34. What is Postorder Traversal?

35. Define Binary Search.

36. What is the difference between Linear Search and Binary Search?

37. What is a Balanced Tree?

38. What is the degree of a node in a tree?

39. What is a leaf node?

40. Define Height of a Tree.

41. What is a Complete Binary Tree?

42. Define Graph.

43. What is a Directed Acyclic Graph (DAG)?

44. What is Topological Sorting?

45. What is a Self-balancing Tree?

46. What is Amortized Analysis?

47. What is a B-Tree?

48. What is the difference between B-Tree and Binary Tree?

49. What is Dynamic Programming?

50. What is Greedy Algorithm?

Coumputer Course

Popular Courses

(123)
Web Development
(123)
FULL STACK JAVA
PROGRAMING
(123)
PYTHON PROGRAMING
smartfuturepoint