
Understanding Stacks: A Quiz for Grade 12 Students
Authored by Martin Highmore
Computers
12th Grade

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
18 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the main characteristic of a stack data structure?
First in, first out (FIFO)
Last in, first out (LIFO)
Random access
Circular access
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation adds an element to the top of a stack?
pop()
is_empty()
peek()
push(data)
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pop() operation do in a stack?
Checks whether a stack is empty
Adds an element to the top of the stack
Returns a copy of the element on the top of the stack
Removes an element from the top of the stack
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation checks if a stack is empty?
is_empty()
push(data)
is_full()
peek()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the peek() operation?
To check if the stack is full
To add an element to the stack
To return a copy of the top element without removing it
To remove the top element of the stack
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In a stack, which element is removed first?
The last element added
The first element added
The smallest element
The middle element
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What real-life example is used to describe a stack?
A bookshelf
A line of cars
A stack of plates
A queue of people
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?