Data Structures MCQs (Part-3)

What is the primary advantage of a hash table over an array?

A Order preservation
B Fixed size allocation
C Fast insertion
D Easy resizing

Which of the following operations is not supported by a stack?

A Search
B Peek
C Push
D Pop

In which data structure is data inserted and removed from opposite ends?

A Stack
B Queue
C Deque
D Priority Queue

Which sorting algorithm is considered stable?

A Quick Sort
B Merge Sort
C Selection Sort
D Heap Sort

Which tree type allows for efficient searching, insertion, and deletion with guaranteed logarithmic time complexity?

A Red-Black Tree
B AVL Tree
C Binary Search Tree
D B-Tree

Which data structure is used in the implementation of recursive algorithms?

A Stack
B Queue
C Linked List
D Tree

Which of these trees is used in database indexing systems?

A AVL Tree
B Red-Black Tree
C B-Tree
D Binary Tree

Which data structure is best for finding the shortest path in a weighted graph?

A Stack
B Deque
C Priority Queue
D Queue

Which type of linked list allows traversal in both directions?

A Doubly Linked List
B Circular Linked List
C Singly Linked List
D Skip List

Which of these operations is not associated with a binary search tree (BST)?

A Deletion
B Rotation
C Insertion
D Search

What does the term “heap property” refer to?

A Balanced tree
B Nodes are ordered
C Parent is larger than children
D Heap is complete

What is the time complexity of accessing an element in an array?

A O(1)
B O(n)
C O(n²)
D O(log n)

Which data structure is used for implementing recursion?

A Queue
B Stack
C Linked List
D Tree

Which of the following is a disadvantage of an array?

A Fixed size
B Dynamic resizing
C Efficient search
D Linked elements

What is the time complexity of deleting an element from a heap?

A O(n log n)
B O(n)
C O(1)
D O(log n)