Data Structure Questions Answers - Chapter 1
-
22. The complexity of linear search algorithm is
- O(n)
- O(log n)
- O(n2)
- O(n log n)
- Only argument I is strong
- Only argument II is strong
- Either I or II is strong
- Neither I nor II is strong
- Both I and II are strong
Answer :
Option
-
23. Preorder is
- depth first order
- breadth first order
- topological order
- linear order
Answer :
Option A
-
24. Recursive problems are implemented by
- queues
- stacks
- linked lists
- strings
Answer :
Option B
-
25. Which of the following name does not relate to stacks
- FIFO lists
- LIFO list
- Piles
- Push-down lists
Answer :
Option A
-
26. A graph with one or more edges is at least
- 1-chromatic
- 2-chromatic
- 3-chromatic
- 4-chromatic
Answer :
Option B
-
27. minimum number of stacks of size n required to implement a queue of size n
- One
- Two
- Three
- Four
Answer :
Option B
-
28. Which of the following data structure is linear data structure
- Trees
- Graphs
- Array
- None of above
Answer :
Option C