Search Header Logo

stack

Authored by Roselin K

Computers

7 Questions

Used 4+ times

stack
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

1.

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?

ABCD

DCBA

DCAB

ABDC

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

FRONT is null

REAR is null

LINK is empty

None of the mentioned

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

Are stacks FIFO or FILO?

FILO
FIFO
LIFO
LILO

4.

MULTIPLE CHOICE QUESTION

30 sec • 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.

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 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.

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

In push operation, if new nodes are inserted at the beginning of linked list, then in pop operation, nodes must be removed from end.

In push operation, if new nodes are inserted at the end, then in pop operation, nodes must be removed from the beginning.

Both of the above

None of the above

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Following is C like pseudo code of a function that takes a number as an argument, and uses a stack S to do processing.


What does the above function do in general?

Prints binary representation of n in reverse order

Prints binary representation of n

Prints the value of Logn

Prints the value of Logn in reverse order

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?