
Topic 3: Stacks
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
najihah ibrahim
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the principle that a stack data structure follows?
Last Come Last Served (LCLS)
Last In First Out (LIFO)
First In First Out (FIFO)
First Come First Served (FCFS)
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which operation is used to add an element to a stack?
Insert
Push
Add
Pop
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the term for the end of the stack where elements are added or removed?
Top of stack
End of stack
Middle of stack
Bottom of stack
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is NOT an application of stacks?
Managing data in recursion
Heap memory management
Sorting algorithms
Simulation of people entering a lift
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In stack implementation using arrays, what does 'top' represent?
The maximum size of the stack
The current location of the last element
The first element in the stack
The total number of elements in the stack
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What happens when you try to pop an element from an empty stack?
It returns null
It does nothing
It throws an error
It returns the last element
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following operation: PUSH(5) on an empty stack?
5
Stack is empty
Stack is full
Error
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
15 questions
After Effect Intoduction
Quiz
•
10th Grade - University
14 questions
Linux: Users and Groups
Quiz
•
9th Grade - University
10 questions
Parcial-Dibujo
Quiz
•
12th Grade
16 questions
Digital Icons
Quiz
•
12th Grade - University
10 questions
Review I-PM Ujikom Multimedia
Quiz
•
12th Grade
10 questions
Unit 4 Advanced AP CSP
Quiz
•
9th - 12th Grade
15 questions
Lesson 5 Looping Quiz
Quiz
•
10th - 12th Grade
11 questions
Access
Quiz
•
10th Grade - University
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
54 questions
Analyzing Line Graphs & Tables
Quiz
•
4th 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
