Stack, Queue, Linked List

Stack, Queue, Linked List

Assessment

Assessment

Created by

Christian Willaum

Computers

University

69 plays

Medium

Student preview

quiz-placeholder

22 questions

Show all answers

1.

MULTIPLE CHOICE

2 mins • 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?

2.

MULTIPLE CHOICE

2 mins • 1 pt

In linked list implementation of a queue, the important condition for a queue to be empty is?

3.

MULTIPLE CHOICE

2 mins • 1 pt

Are stacks FIFO or FILO?

4.

MULTIPLE CHOICE

2 mins • 1 pt

How many stacks are needed to implement a queue. Consider the situation where no other data structure like arrays, linked list is available to you.

5.

MULTIPLE CHOICE

2 mins • 1 pt

How many queues are needed to implement a stack. Consider the situation where no other data structure like arrays, linked list is available to you.

6.

MULTIPLE CHOICE

2 mins • 1 pt

Which of the following is true about linked list implementation of queue?

7.

MULTIPLE CHOICE

2 mins • 1 pt

Media Image

Consider the following operation along with Enqueue and Dequeue operations on queues, where k is a global parameter.

What is the worst case time complexity of a sequence of n MultiDequeue() operations on an initially empty queue?

8.

MULTIPLE CHOICE

2 mins • 1 pt

Suppose implementation supports an instruction REVERSE, which reverses the order of elements on the stack, in addition to the PUSH and POP instructions. Which one of the following statements is TRUE with respect to this modified stack?

9.

MULTIPLE CHOICE

3 mins • 1 pt

Media Image

The following postfix expression with single digit operands is evaluated using a stack:

Note that ^ is the exponentiation operator. The top two elements of the stack after the first * is evaluated are:

10.

MULTIPLE CHOICE

2 mins • 1 pt

If the sequence of operations - push (1), push (2), pop, push (1), push (2), pop, pop, pop, push (2), pop are performed on a stack, the sequence of popped out values

Explore all questions with a free account

or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?

Discover more resources for Computers