Data Structures - Stacks

Data Structures - Stacks

11th - 12th Grade

14 Qs

quiz-placeholder

Similar activities

Module 11 - Essential Peripherals 4

Module 11 - Essential Peripherals 4

9th - 12th Grade

18 Qs

Threats to Data

Threats to Data

9th - 12th Grade

11 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Chapter 7: System life cycle

Chapter 7: System life cycle

9th - 11th Grade

15 Qs

Tin 12 - Bài 1 - Củng cố

Tin 12 - Bài 1 - Củng cố

12th Grade

10 Qs

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

Internet 2nd

Internet 2nd

11th Grade

18 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Data Structures - Stacks

Data Structures - Stacks

Assessment

Quiz

Computers

11th - 12th Grade

Practice Problem

Easy

Created by

Ben Taylor

Used 9+ times

FREE Resource

AI

Enhance your content in a minute

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

14 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which principle of object-oriented programming is most closely related to the implementation of abstract data types like stacks?

Inheritance
Polymorphism
Encapsulation
Abstraction

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What distinguishes a stack from a queue in terms of data access?

First In First Out (FIFO)
Last In First Out (LIFO)
Random Access
Priority-based Access

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which operation would you use to add an item to the top of a stack?

Pop
Peek
Enqueue
Push

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the primary purpose of the 'peek' operation in a stack?

View the top item without removing it
Remove the top item
Add a new item
Check if the stack is empty

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In the context of stack operations, what does 'overflow' refer to?

Attempting to push onto a full stack
Attempting to pop from an empty stack
Exceeding the maximum integer value
Recursive function calls exceeding memory limits

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is stored in a stack frame during a subroutine call?

Global variables
Parameters, return address, and local variables
The entire program code
The contents of the CPU registers

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What happens to local variables when a subroutine completes execution?

They are stored in global memory
They are converted to global variables
They are popped off the stack
They remain on the stack indefinitely

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?