wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Data Structures

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

Example of linear data structure except

a)

array

b)

tree

c)

queue

d)

stack

2.

Which of these data structures is LIFO?

a)

Stack

b)

Queue

c)

Binary Tree

d)

Double linked list

3.

int nums[ ] =

{2, 3, 5, 8, 9, 11};

How would you access the fourth element in nums

a)

nums[8]

b)

nums[3]

c)

nums(4)

d)

nums(3)

4.
Which of the following is NOT a Type of Data Structures?
a)
Arrays
b)
Tables
c)
Stacks
d)
Trees
5.

A FIFO structure implemented as a ring where the front and rear pointers can wrap around the end of the start of the array.

a)

Linear Queue

b)

Circular Queue

c)

Priority Queue

6.
What kind of Data structure would you expect to find utilised to store operations in a CPU?
a)
Stack
b)
Queue
c)
List
d)
Tree
7.

In a stack, if a user tries to remove an element from empty stack it is called _________

a)

Underflow

b)

Stack is Empty

c)

Overflow

d)

None of the above

8.

Pushing an element into stack already having five elements and stack size of 5, then stack becomes

a)

Overflow

b)

Crash

c)

Underflow

d)

None of the above

9.
In this tree, where would the new value "7" be placed?
a)
On the left "leaf" of "4"
b)
On the right "leaf" of "6"
c)
On the left "leaf" of "15"
d)
Over the top of the current number "5"
10.

If the insertion and deletion happens from both the ends then the queue is called a______Queue

a)

a) Deque

b)

b) Header

c)

c) Queue

d)

d) Circular Queue

11.

What is the value of the ROOT node in this Tree?

a)

35

b)

24

c)

42

d)

20

12.
What would 'leaving' a queue be called?
a)
"Dequeue"
b)
"Enqueue"
c)
"Leave queue"
d)
"Delete 'system 32' folder"
13.

Can We Implement Stack Using Queue Data structure

a)

Yes

b)

No

14.

It use pointer to link nodes.

a)

Variable

b)

Link List

c)

Pointer

d)

Trees

15.

Act of adding values into a stack is called

a)

Popping

b)

Polling

c)

Pushing

d)

None