
KS5 - Stacks - MMD
Quiz
•
Education
•
11th Grade
•
Practice Problem
•
Hard
muhammad abdulmajeed
FREE Resource
Enhance your content in a minute
31 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does LIFO stand for in data structures?
Last In, First Out
First In, Last Out
Last In, Last Out
First In, First Out
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is an example of a stack operation in computing?
Undo option in word processing
Saving a file
Opening a new document
Printing a document
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the isEmpty() method test in a stack?
Whether a stack is empty
Whether a stack is full
Whether a stack is sorted
Whether a stack is initialized
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the result of the statement p.isFull() if p is an array of size 4 and contains ['first', 'second', 'third', 'fourth']?
True
False
Error
Undefined
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the push(element) method do in a stack?
Adds an item to the top of the stack
Removes an item from the top of the stack
Checks if the stack is full
Checks if the stack is empty
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Diagram of a stack showing elements 'first', 'second', 'third', 'fourth' with 'fourth' at the top.
fourth, third, second, first
first, second, third, fourth
second, third, fourth, first
third, fourth, first, second
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the pop() function do in a stack?
Adds an element to the top of the stack
Removes and returns the top of the stack
Returns the number of elements in the stack
Returns the bottom element of the stack
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
26 questions
Pagbasa Q3_1
Quiz
•
11th Grade
35 questions
Marketing Unit 1 Review
Quiz
•
9th - 12th Grade
26 questions
Red Scarf Girl Study Sync
Quiz
•
6th Grade - University
26 questions
PenilaianTengah Semester Bahasa Inggris Kelas 8 SMP Fatunisuan
Quiz
•
8th Grade - University
26 questions
Bahasa Inggris
Quiz
•
2nd Grade - University
26 questions
shapes and signs (drivers ed on the final)
Quiz
•
9th - 12th Grade
28 questions
Saya anak Malaysia
Quiz
•
7th - 11th Grade
30 questions
Francais 2- Passé Composé with avoir
Quiz
•
10th - 12th Grade
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
