CHAPTER 3 : STACKS

CHAPTER 3 : STACKS

University

30 Qs

quiz-placeholder

Similar activities

DS

DS

University

30 Qs

Data Strcuture

Data Strcuture

University

25 Qs

QUEUE DATA STRUCTURE

QUEUE DATA STRUCTURE

University

30 Qs

Revision DEC30043

Revision DEC30043

University

30 Qs

Midterm Examination in Data Structure.

Midterm Examination in Data Structure.

University

25 Qs

WWW Quiz at Web3SSH by Dr. Rajendra Prasanth

WWW Quiz at Web3SSH by Dr. Rajendra Prasanth

University

26 Qs

Data Strucuture & Python

Data Strucuture & Python

University

25 Qs

DSA - Q1

DSA - Q1

University

25 Qs

CHAPTER 3 : STACKS

CHAPTER 3 : STACKS

Assessment

Quiz

Computers

University

Medium

Created by

Azilah Rahim

Used 3+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?