wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

DS Quiz1

Total questions: 10

Worksheet time: 7mins

Name
Class
Date
1.

Which of the following sorting algorithms can be used to sort a random linked list with minimum time complexity?

a)

Insertion Sort

b)

Bubble sort

c)

Merge sort

d)

Selection sort

2.

A binary tree in which all its levels except the last, have maximum numbers of nodes, and all the nodes in the last level have only one child it will be its left child. Name the tree.

a)

Threaded tree

b)

M-way search tree

c)

Complete binary tree

d)

Full binary tree

3.

Minimum number of fields in each node of a doubly linked list is?

a)

2

b)

3

c)

4

d)

1

4.

Suppose the numbers 7, 5, 1, 8, 3, 6, 0, 9, 4, 2 are inserted in that order into an initially empty binary search tree. The binary search tree uses the usual ordering on natural numbers. What is the in-order traversal sequence of the resultant tree?

a)

0 1 2 3 4 5 6 7 8 9

b)

7 5 1 0 3 2 4 6 8 9

c)

0 2 4 3 1 6 5 9 8 7

d)

9 8 6 4 2 3 0 1 5 7

5.

A queue follows _________

a)

FIFO principle

b)

LIFO principle

c)

Linear tree

d)

Ordered array

6.

The post order traversal of a binary tree is DEBFCA. Find out the post order traversal.

a)

ABFCDBE

b)

ADBFEC

c)

ABDECF

d)

ABDCEF

7.

Which of the following data structure store the homogeneous data elements?

a)

Arrays

b)

linked list

c)

Stack

d)

queue

8.

Which of the following is the prefix form of A+B*C?

a)

+A*BC

b)

ABC+*

c)

+AB*C

d)

A+(BC*)

9.

 A linear data structure in which insertion and deletion operations can be performed from both the ends is____

a)

Circular Queue

b)

Deque

c)

Queue

d)

Priority Queue

10.

Given an undirected graph G with V vertices and E edges, the sum of the degrees of all vertices is?

a)

E

b)

2E

c)

V

d)

2V