Data Structures MCQ Test: Data Structures MCQs - Practice Questions
1. What is the purpose of the 'Floyd-Warshall algorithm' in graph theory?
2. What is the purpose of a 'spanning tree' in graph theory?
3. What is the time complexity of the Floyd-Warshall algorithm for all-pairs shortest paths?
4. What is the role of the 'head' in a linked list?
5. In the context of data structures, what does 'deterministic' mean?
6. How is a circular linked list different from a regular linked list?
7. In the context of data structures, what is a B* tree commonly used for?
8. Which of the following is an example of a non-linear data structure?
9. What is the primary advantage of using a heap over a binary search tree?
10. In the context of data structures, what is the purpose of a persistent segment tree?
11. What is the significance of the 'null' pointer in data structures?
12. What is the primary advantage of using a 'trie' data structure?
13. What is the main purpose of a hash function in a hash table?
14. In graph theory, what is the purpose of Dijkstra's algorithm?
15. What distinguishes a rope data structure from a regular string?
16. In a linked list, how are elements typically accessed?
17. What is the primary advantage of using a hash table in data structures?
18. What is the primary advantage of using a Fibonacci heap over other heap data structures?
19. In the context of data structures, what is the key characteristic of a B-tree?
20. In the context of data structures, what is a disadvantage of using an array?
21. What is the purpose of the 'tail' in a linked list?
22. Which data structure is best suited for implementing a dictionary?
23. What is the primary purpose of a binary search in data structures?
24. What is the time complexity of searching in a balanced binary search tree?
25. In the context of data structures, what is the 'link/cut tree' used for?
26. What distinguishes a tree from other data structures?
27. What is the primary difference between breadth-first search (BFS) and depth-first search (DFS) in graph traversal?
28. In a binary tree, how many children can a node have?
29. What is the primary advantage of using a Bloomier filter over a Bloom filter?
30. In a linked list, what is the difference between singly linked and doubly linked lists?
31. In the context of data structures, what is the 'pre-order traversal' of a binary tree?
32. What is the time complexity of inserting an element into a binary heap?
33. In the context of data structures, what is the purpose of an adjacency matrix?
34. What is the primary purpose of a persistent data structure?
35. In the context of data structures, what is the primary purpose of a van Emde Boas tree?
36. What is the primary advantage of using a B* tree over a B-tree?
37. What is the primary advantage of using a hash table over an array?
38. In the context of data structures, what is the 'in-order traversal' of a binary tree?
39. In the context of data structures, what is the primary advantage of using an implicit treap?
40. What distinguishes a 'skip list' from a regular linked list?