Data Structure Questions Answers - Chapter 1
-
1. Recursive problems are implemented by
- queues
- stacks
- linked lists
- strings
Answer :
Option B
-
2. Which sorting method is slowest
- Quick sort
- Heap sort
- Shell sort
- Bubble sort
Answer :
Option D
-
3. The complexity of merge sort algorithm is
- O(n)
- O(log n)
- O(n2)
- O(n log n)
Answer :
Option D
-
4. The complexity of Binary search algorithm is
- O(n)
- O(log n)
- O(n2)
- O(n log n)
Answer :
Option B
-
5. The complexity of Bubble sort algorithm is
- O(n)
- O(log n)
- O(n2)
- O(n log n)
Answer :
Option C
-
6. In C how many parameters can passed to a function
- 2
- 5
- 10
- as many as defined in function definition
Answer :
Option D
-
7. A linear list from which elements can be added or removed from either end is called
- stack
- queue
- deque
- tree
Answer :
Option C