MCQs on List ADT and Array-Based Implementation
1. What does the 'T' in ADT stand for?
A. Template
B. Tree
C. Type
D. Token
Answer: C. Type
2. List ADT stores data in:
A. Hierarchical structure
B. Tabular structure
C. Sequential order
D. Unordered format
Answer: C. Sequential order
3. The abstract nature of List ADT means:
A. It cannot be implemented
B. It can only be used in linked lists
C. Only interface is defined, not implementation
D. It is not usable in real programs
Answer: C. Only interface is defined, not implementation
4. Which is not a linear data structure?
A. Array
B. Stack
C. Queue
D. Tree
Answer: D. Tree
5. In an array-based list, insertions at the end take:
A. O(n)
B. O(log n)
C. O(1)
Page 1
MCQs on List ADT and Array-Based Implementation
D. O(n log n)
Answer: C. O(1)
6. What happens when we insert at the start of an array-based list?
A. All elements must be shifted
B. List becomes sorted
C. No operation is required
D. Memory doubles automatically
Answer: A. All elements must be shifted
7. In an array-based list, which operation is most expensive (time-wise)?
A. Accessing the middle element
B. Deleting at the front
C. Traversing the list
D. Printing all elements
Answer: B. Deleting at the front
8. The initial size of a statically allocated array is:
A. Defined at runtime
B. Defined at compile-time
C. Based on the OS
D. Grows automatically
Answer: B. Defined at compile-time
9. What is the result of inserting an element at index 0 in an array list?
A. It is placed at the end
B. The element is discarded
C. All existing elements shift right
D. The program crashes
Answer: C. All existing elements shift right
10. Array-based implementation is not suitable when:
A. Frequent insertions at end
Page 2
MCQs on List ADT and Array-Based Implementation
B. Random access is needed
C. Frequent insertions at front
D. List is small
Answer: C. Frequent insertions at front
Page 3