2.3.1 Stacks - Do Now

2.3.1 Stacks - Do Now

12th Grade

5 Qs

quiz-placeholder

Similar activities

Unit 5 -- Lists, Loops, Traversals

Unit 5 -- Lists, Loops, Traversals

9th - 12th Grade

9 Qs

Ch 3 Stack

Ch 3 Stack

12th Grade

10 Qs

Python L1 Quiz 4: Lists

Python L1 Quiz 4: Lists

1st - 12th Grade

10 Qs

CSP Lists

CSP Lists

9th - 12th Grade

10 Qs

Lists Code.org

Lists Code.org

9th - 12th Grade

10 Qs

Code.org AP CSP Lists

Code.org AP CSP Lists

9th - 12th Grade

10 Qs

Code.org List Questions

Code.org List Questions

9th - 12th Grade

10 Qs

Introduction to HTML/CSS Quiz 1: Overview and Setup

Introduction to HTML/CSS Quiz 1: Overview and Setup

6th - 12th Grade

10 Qs

2.3.1 Stacks - Do Now

2.3.1 Stacks - Do Now

Assessment

Quiz

Computers

12th Grade

Easy

Created by

RHSC Computing

Used 1+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does LIFO stand for in the context of stacks?

Least Important First Out

Least Input First Output

Last In First Out

Last In Final Out

2.

FILL IN THE BLANK QUESTION

1 min • 1 pt

What method is used to insert an element into a stack?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What operation does the 'pop' method perform in a stack?

Inserts an element at the beginning

Removes the last element

Removes the first element

Checks the first element

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

For what purposes are stacks used in computing?

Internet browsing and email sending

Data encryption and decryption

Sorting and searching algorithms

Backtracking and compile-time memory management

5.

DRAG AND DROP QUESTION

1 min • 1 pt

​ (a)  

This is where an item is ​ (b)   to the top of the stack. If the stack is full and the item cannot be added then an error is raised.

​ (c)  

This is where an item is removed from the top of the stack and returned to the program for further processing. If the stack is already empty then an ​ (d)   is raised.

​ (e)  

This is where the value contained at the top of the stack is returned to the program without removing the item from the stack. If the stack is empty then an error is raised.

Push
added
Pop
error
Peek
Insert
Delete
Retrieve
Overflow
Underflow