Stack ADT
Quiz
•
Computers
•
5th Grade
•
Medium
Colin Leod
Used 37+ times
FREE Resource
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
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A stack is a data structure in which elements
can be added to any position and removed only from the top
can be only added to the top and removed from any position
can be added and removed from the top only
can be added and removed from any position
9.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following statements is a specification of a set of data and the set of operations that can be performed on the data?
Library
ADT
Package
Tracer
Similar Resources on Wayground
10 questions
Nord CE4 for Partner
Quiz
•
5th Grade
10 questions
Module 4 - Electronic Spreadsheet
Quiz
•
5th Grade
10 questions
Computer Languages
Quiz
•
KG - University
10 questions
Internet Safety
Quiz
•
3rd - 6th Grade
12 questions
MAC KEYBOARD
Quiz
•
3rd - 9th Grade
10 questions
KODU
Quiz
•
3rd - 6th Grade
11 questions
FV Lab hw / sw #1
Quiz
•
1st - 5th Grade
11 questions
Parts of a computer - 3rd - 5th
Quiz
•
5th Grade
Popular Resources on Wayground
10 questions
Ice Breaker Trivia: Food from Around the World
Quiz
•
3rd - 12th Grade
20 questions
MINERS Core Values Quiz
Quiz
•
8th Grade
10 questions
Boomer ⚡ Zoomer - Holiday Movies
Quiz
•
KG - University
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
Adding Integers
Quiz
•
6th Grade
20 questions
Multiplying and Dividing Integers
Quiz
•
7th Grade
10 questions
How to Email your Teacher
Quiz
•
Professional Development
15 questions
Order of Operations
Quiz
•
5th Grade
