wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Structures MCQs

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Which data structure uses LIFO (Last In First Out)?

a)

Queue

b)

Stack

c)

Linked List

d)

Array

2.

Which data structure is used for BFS (Breadth-First Search)?

a)

Stack

b)

Queue

c)

Tree

d)

Array

3.

Which of the following has the fastest access time?

a)

Array

b)

Linked list

c)

Queue

d)

Stack

4.

Which operation is not typically supported by a queue?

a)

Enqueue

b)

Dequeue

c)

Peek

d)

Push

5.

A linked list is best suited for which of the following?

a)

Random access

b)

Dynamic memory allocation

c)

Fixed size storage

d)

Binary operations

6.

What is the time complexity of binary search?

(a)  

7.

In a max-heap, the largest element is found at the:

a)

Left child

b)

Right child

c)

Root

d)

Leaf node

8.

Which tree traversal visits nodes in the order Left, Root, Right?

a)

Preorder

b)

Inorder

c)

Postorder

d)

Level order

9.

A graph that has no cycles is called:

a)

Directed graph

b)

Weighted graph

c)

Acyclic graph

d)

Complete graph

10.

Which is not a self-balancing BST?

a)

AVL tree

b)

Red-black tree

c)

Binary heap

d)

Splay tree