Search Header Logo

DSA Quiz 2

Authored by MANJU VERMA

Computers

University

Used 1+ times

DSA Quiz 2
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

_______ form of access is used to add and remove nodes from a queue

LIFO,Last In First Out

FIFO , First In First Out

Both 1 and 2

None of these

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One difference between a queue and a stack is:

Queues require dynamic memory, but stacks do not

Stacks require dynamic memory, but queues do not.

Queues use two ends of the structure; stacks use only one.

Stacks use two ends of the structure, queues use only one

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the characters 'D', 'C', 'B', 'A' are placed in a queue (in that order), and then removed one at a time, in what order will they be removed?

ABCD

ABDC

DCAB

DCBA

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The operator used to find the size of any variable

sizeof

Sizeof

sizeOf

all the above

5.

FILL IN THE BLANK QUESTION

1 min • 1 pt

_________traversal of Binary search tree gives sorted sequence.

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Attempting to delete a node in __________linked list results in underflow

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The expression 4+6/3*2-2+7%3 evaluates to

3

4

6

7

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?