Search Header Logo

CHAPTER 3 : STACKS

Authored by Azilah Rahim

Computers

University

Used 3+ times

CHAPTER 3 : STACKS
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does LIFO stand for in the context of stack operations?

Last In First Out

Last In Final Out

Last Item First Out

Last Input First Output

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What error occurs when attempting to push an item into a full stack implemented with an array?

Underflow

Overflow

Null Pointer Exception

Out of Memory

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is a real-life example of a stack?

Queue at a bus stop

Pile of dishes in a cupboard

Line of cars in traffic

People sitting in a circle

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation adds an item to the top of the stack?

Pop

Push

Peek

Shift

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What problem can occur when attempting to pop an item from an empty stack?

Overflow

Underflow

Overload

Underload

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which stack operation returns the top item without removing it from the stack?

Push

Pop

Peek

Shift

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a stack, which position is considered for adding (pushing) and removing (popping) items?

Bottom

Middle

Anywhere

Top

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?

Discover more resources for Computers