Stack ADT
Quiz
•
Computers
•
5th Grade
•
Practice Problem
•
Medium
Colin Leod
Used 37+ times
FREE Resource
Enhance your content in a minute
9 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Process of adding an element to a stack is
Create
Push
Evaluation
Pop
2.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Process of removing an element from the stack
Create
Push
Evaluation
Pop
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
In a stack, if a user tries to remove an element from an empty stack it is called
Underflow
Empty Collection
Overflow
Garbage Collection
4.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Pushing an element into a stack already having six elements and the size is six, then the stack has
Overflow
Crash
Underflow
User flow
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Stack Data Structure is
FIFO
None of these
LILO
LIFO
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Consider the following function where Max is the maximum amount of elements in a stack
Procedure Demo(newItem)
Begin
If topValue = Max then
print "It is full"
else
topValue = topValue + 1
Stack(topValue) = newItem
End Procedure
The algorithm above is designed to show how
values are popped off a stack
values are pushed into a stack
top values can be replaced
values can be replaced in a stack
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
LEMON ----- Top
ROSE
CARROT
CORN
TULIP
After three POP operations have been performed on the above stack, the three items, in order, which will be taken out of the stack are
LEMON, ROSE, CARROT
ROSE, CARROT, CORN
TULIP, CORN, CARROT
CARROT, CORN, TULIP
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?
Similar Resources on Wayground
10 questions
What would you do if...
Quiz
•
1st - 12th Grade
10 questions
Artificial Intelligence
Quiz
•
5th Grade - University
13 questions
Five Nights At Freddy's: Security Breach Quiz
Quiz
•
KG - Professional Dev...
11 questions
G5_Flowcharts_W4
Quiz
•
5th Grade
8 questions
Online safety
Quiz
•
5th Grade
12 questions
Spreadsheet
Quiz
•
5th - 11th Grade
10 questions
BASIC Computer Technology Quiz
Quiz
•
1st - 5th Grade
13 questions
Guess the Video Game Pets 1
Quiz
•
KG - Professional Dev...
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
