MCQs All Modules Part1
MCQs All Modules Part1
University Syllabus
Module 1: Introduction (6L)
1. 1. What is the best case time complexity of Linear Search?
● A) O(n)
● B) O(1)
● C) O(n log n)
● D) O(log n)
Answer: B
● A) Big-O
● B) Big-Ω
● C) Big-θ
● D) Big-δ
Answer: D
● A) Increase recursion
Answer: C
4. 4. What does the term 'elementary data organization' refer to?
● A) Control structures
● B) Algorithm design
● D) Compiler design
Answer: C
● A) Unsorted arrays
● B) Sorted arrays
● C) Linked lists
● D) Hash tables
Answer: B
● A) O(n)
● B) O(log n)
● C) O(n log n)
● D) O(1)
Answer: B
● A) O(1)
● B) O(log n)
● C) O(n)
● D) O(n²)
Answer: C
● C) To avoid debugging
● D) To design UI
Answer: B
● A) Queue
● B) Stack
● C) Tree
● D) Graph
Answer: B
● A) O(1)
● B) O(log n)
● C) O(n)
● D) O(n log n)
Answer: A
11. 3. In which data structure insertion and deletion are done at opposite ends?
● A) Stack
● B) Queue
● C) Linked List
● D) Tree
Answer: B
12. 4. What is the worst-case time complexity of enqueue operation in circular queue?
● A) O(1)
● B) O(n)
● C) O(log n)
● D) O(n log n)
Answer: A
13. 5. Which type of queue allows insertion and deletion at both ends?
● A) Simple Queue
● B) Priority Queue
● C) Deque
● D) Circular Queue
Answer: C
● A) Expression Evaluation
● B) Priority Scheduling
● C) BFS
● D) DFS
Answer: A
● A) Circular Queue
● B) Simple Queue
● C) Deque
● D) Priority Queue
Answer: D
● A) Queue
● B) Stack
● C) Tree
● D) Heap
Answer: B
● A) LIFO
● B) FIFO
● C) FILO
● D) LILO
Answer: B
● B) top == size - 1
● C) top == 0
● D) top == NULL
Answer: B
19. 11. Which queue implementation avoids the problem of unused space in a simple
queue?
● A) Deque
● B) Double Queue
● C) Circular Queue
● D) Static Queue
Answer: C
● A) Array
● B) Linked List
● C) Heap
Answer: D
● A) insert()
● B) enqueue()
● C) delete()
● D) pop()
Answer: D
● A) pop()
● B) insert()
● C) enqueue()
● D) delete()
Answer: C
● A) FIFO structure
● B) Insert at front
● D) Used in scheduling
Answer: B
● A) Queue
● B) Array
● C) Stack
● D) Linked List
Answer: C
2. What is the time complexity of inserting a node at the beginning of a linked list?
A) O(1)
B) O(n)
C) O(log n)
D) O(n log n)
Answer: A
3. What is the maximum number of children a binary tree node can have?
A) 1
B) 2
C) 3
D) Any number
Answer: B
4. What is the time complexity of BFS in a graph with V vertices and E edges?
A) O(V)
B) O(E)
C) O(V + E)
D) O(VE)
Answer: C