
Topic 3: Stacks

Quiz
•
Computers
•
12th Grade
•
Hard
najihah ibrahim
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
A Level Computing - Operating Systems 1

Quiz
•
12th Grade
10 questions
Berfikir Komputesional

Quiz
•
9th - 12th Grade
10 questions
AP CS A Unit 7 Quiz PRACTICE

Quiz
•
9th - 12th Grade
15 questions
AP CSP - Unit 6: Lesson 6: Assessment Day

Quiz
•
12th Grade
8 questions
Topics 7 & 8 - Static Methods/Variables and Null Keyword

Quiz
•
12th Grade
12 questions
Zbiory w języku Python

Quiz
•
12th Grade
11 questions
Sains Komputer Tingkatan 5 - 3.3.3 Membina laman web mudah

Quiz
•
1st Grade - Professio...
15 questions
Queues

Quiz
•
11th Grade - Professi...
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade