Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Data Structures

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Arranging the books in order and removing from the topmost book is an example for________

a)

Linked List

b)

Queue

c)

Stack

d)

Structure

2.

What is the result of pop(x) operation on the stack?

a)

Add x to top of stack

b)

Removes x from bottom of stack

c)

Add x to the stack

d)

Removes x from top of stack

3.

What data structure can be used to check if a syntax has balanced paranthesis ?

a)

Queue

b)

Stack

c)

List

d)

Union

4.

Queue uses ____________ for adding and deleting elements.

a)

top

b)

front

c)

rear

d)

2 and 3

5.

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

a)

ABCD

b)

DCBA

c)

DCAB

d)

BADC

6.

The operations performed by Stack are_____________

a)

insert,delete

b)

push,pop

c)

add,delete

d)

enqueue and dequeue

7.

_______________ is the data structure that has collection of nodes two fields named data and link.

a)

Queue

b)

Stack

c)

Linked List

d)

Circular queue

8.

In ___________ type of linked lists we can traverse in both the directions.

a)

Singly linked list

b)

Circular linked list

c)

One dimensional linked list

d)

Doubly linked list

9.

._____________ is a data structure in which every individual node consists of INFO to store data and LINK to store the address of the next node.

a)

Queue

b)

Stack

c)

Singly Linked List

d)

Circular queue

10.

Which of the following principle does queue use?

a)

LIFO

b)

FIFO

c)

Linear

d)

Ordered