Data Structures (STACKs)

Data Structures (STACKs)

University

15 Qs

quiz-placeholder

Similar activities

Data Structures Prelimes

Data Structures Prelimes

University

16 Qs

Quiz Number 2 in CSS

Quiz Number 2 in CSS

12th Grade - University

20 Qs

Informative Speaking

Informative Speaking

University

10 Qs

CB CHAPTER 8 Pay for Performance Plans

CB CHAPTER 8 Pay for Performance Plans

University

20 Qs

Mixed tenses

Mixed tenses

6th Grade - University

20 Qs

Table Appointments "LINEN"

Table Appointments "LINEN"

12th Grade - University

10 Qs

ROMANTYZM - wprowadzenie do epoki

ROMANTYZM - wprowadzenie do epoki

10th Grade - Professional Development

10 Qs

BOOSTER SIP

BOOSTER SIP

KG - Professional Development

10 Qs

Data Structures (STACKs)

Data Structures (STACKs)

Assessment

Quiz

Other

University

Practice Problem

Easy

Created by

Nathaniel Mensah

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which principle does a stack follow?

First-In, First-Out (FIFO)

Last-In, First-Out (LIFO)

Random Access

Middle-In, Middle-Out

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Where do insertion and removal of elements take place in a stack?

Bottom

Middle

Top

Random location

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term for adding an element to a stack?

 Pop

Push

Top

Empty

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term for removing an element from a stack?

Push

Pop

Top

 IsEmpty

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation checks if the stack is empty?

Push

Pop

Top

IsEmpty

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the size() operation on a stack return?

The top element

True if the stack is empty, false otherwise

The number of elements in the stack.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the time complexity for push and pop operations on a stack?

O(n)

O(log n)

O(1)

O(n^2)

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?