Data - Structures - MCQs Set 1
Data - Structures - MCQs Set 1
(a) Queue
(b) Stack
(d) Array
(a) Graph
(b) Tree
(c) Queue
(a) Stack
(b) Queue
(c) Heap
(d) Tree
(b) Breadth-first
(c) Preorder
6. What is the time complexity of accessing an element in an array using its index?
(a) O(n)
(b) O(1)
(c) O(log n)
(d) O(n²)
(a) Stack
(b) Array
(d) Tree
8. In which data structure does insertion and deletion take place at both ends?
(a) Queue
(b) Stack
(c) Deque
(d) Tree
9. Which of the following sorting algorithms has the best average-case performance?
(a) Bubble sort