Search Header Logo

Topic 3 (Stacks)

Authored by watie i

Computers

1st - 12th Grade

Used 146+ times

Topic 3 (Stacks)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

20 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Process of inserting an element in stack is called (a)  

2.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

In a stack, if a user tries to remove an element from empty stack it is called (a)  

3.

FILL IN THE BLANK QUESTION

2 mins • 1 pt

Pushing an element into stack already having five elements and stack size of 5, then stack becomes (a)  

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

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

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

5.

MULTIPLE CHOICE QUESTION

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

2,2,1,1,2

2,2,1,2,2

2,1,2,2,1

2,1,2,2,2

6.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Consider the following operations performed on a stack of size 5 : Push (a); Pop() ; Push(b); Push(c); Pop(); Push(d); Pop();Pop(); Push (e) Which of the following statements is correct?

Underflow occurs

Overflow occurs

Stack operations are performed smoothly

None of the above

7.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Consider the linked list implementation of a stack. Which of the following node is considered as Top of the stack?

Last node

Any node

First node

Middle node

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?