No student devices needed. Know more
15 questions
What is a stack?
A data structure that adds the last added data item.
A data structure that increases data items first.
Data structure that removes the last added data item first
A data structure that multiplies data items
What two operations do stacks require?
Push
Draw
Stretch
Drag
Pop
What operation adds a new item onto the top of the stack?
Pull
Push
Add
Multiply
What operation removes the item from the top of the stack
Pull
Add
Pop
Subtract
If you have a stack containing 'A' 'D' 'G' . What will happen if you push 'C' into the stack?
'C' Will be added on top of the stack
'C' Will be added from the bottom of the stack
'C' Will be removed from the stack
'C' Will not be added to the stack
A stack containing 'Dog' 'Cat' & 'Rat' . What will happen if you carry out a pop operation on the stack ?
Noting
Cat will be removed
Dog will be removed
Rat will be removed
If you carry out a pop operation on this stack what will you be left with?
What will happen if you carry out a push operation with the word 'Bill'?
What are Stacks Used For?
Type in data from keyboard
To remove data
To stack information
To keep track of a sequence of operations
When an interrupt occurs, where is the current instruction placed in the stack?
On top
The bottom
The side
No where
When an interrupt is dealt with, what operation takes place to the last added instruction.
Pop
Pull
Multiplied
Added
A data structure that removes the first added data item first is called...
A queue
A stack
Data
A row
A queue is a first in, ________ data structure.
Last in
Last out
First out
All of the above
What two operations do Queues require?
Add
Push
Remove
Pop
A common example of a queue operation is...
Write queue
Do queue
Print queue
Cyber queue
Explore all questions with a free account