Search Header Logo

DSQUIZ 2020-21

Authored by SUBHASH AGRAWAL

Computers

University

Used 7+ times

DSQUIZ 2020-21
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which type of traversal of binary search tree outputs the value in sorted order?

a) Pre-order

b) In-order

c) Post-order

d) None

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A binary search tree is generated by inserting in order the following integers:

50, 15, 62, 5, 20, 58, 91, 3, 8, 37, 60, 24

The number of the node in the left sub-tree and right sub-tree of the root, respectively, is

a) (4, 7)

b) (7, 4)

c) (8, 3)

d) (3, 8)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A linear list of elements in which deletion can be done from one end (front) and insertion can take place only at the other end (rear) is known as a ?

a) Queue

b) Stack

c) Tree

d) Linked list

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The data structure required for Breadth First Traversal on a graph is?

a) Stack

b) Array

c) Queue

d) Tree

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The data structure required for Depth First Traversal on a graph is?

a) Stack

b) Array

c) Queue

d) Tree

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Let the following circular queue can accommodate maximum six elements with the following data


front = 2 rear = 4

queue = -, L, M, N, -,-

What will happen after ADD O operation takes place?

a) front = 2 rear = 5

queue = ______; L, M, N, O, ___

b) front = 3 rear = 5

queue = L, M, N, O, ___

c) front = 3 rear = 4

queue = ______; L, M, N, O, ___

d) front = 2 rear = 4

queue = L, M, N, O, ___

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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) ABDC

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?