Data Structures for Algorithms

Quiz stacks queues heaps and hash tables.

1. Which data structure provides O(1) average time complexity for access by index?
2. Select all linear data structures from the options below.
3. A stack data structure follows the LIFO (Last In First Out) principle.
4. What data structure consists of vertices (nodes) connected by edges, where each vertex can have multiple neighbors?
5. Which data structure is most efficient for implementing a priority queue?
6. Which operations have O(1) time complexity in a properly implemented dynamic array?
7. In a binary search tree (BST), the left child of a node is always smaller than the node, and the right child is always larger.
8. What data structure allows adding elements to one end (rear) and removing from the other end (front), following FIFO order?
9. Which data structure has no fixed size and allows dynamic memory allocation with nodes containing data and pointers?
10. Which of the following data structures can be used to implement a stack?
Answered 0 of 0 — 0 correct