
KS5 - Stacks - MMD

Quiz
•
Education
•
11th Grade
•
Hard
muhammad abdulmajeed
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
27 questions
BJC AP CSP Unit 3 Exam Review

Quiz
•
9th - 12th Grade
30 questions
The Business Letter

Quiz
•
7th - 11th Grade
35 questions
Marketing Unit 1 Review

Quiz
•
9th - 12th Grade
35 questions
fractions

Quiz
•
6th Grade - University
30 questions
Mock Test Skimming & Scanning

Quiz
•
11th Grade
30 questions
Early childhood brain development

Quiz
•
11th Grade
35 questions
Chapter 8-15 Education & Training

Quiz
•
KG - University
30 questions
Ecology and Geography :)

Quiz
•
10th - 12th Grade
Popular Resources on Wayground
18 questions
Writing Launch Day 1

Lesson
•
3rd Grade
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
Discover more resources for Education
40 questions
Algebra Review Topics

Quiz
•
9th - 12th Grade
19 questions
Handbook Overview

Lesson
•
9th - 12th Grade
40 questions
LSHS Student Handbook Review: Pages 7-9

Quiz
•
11th Grade
20 questions
Scalars, Vectors & Graphs

Quiz
•
11th Grade
62 questions
Spanish Speaking Countries, Capitals, and Locations

Quiz
•
9th - 12th Grade
10 questions
Solving Equations Opener

Quiz
•
11th Grade
20 questions
First Day of School

Quiz
•
6th - 12th Grade
21 questions
Arithmetic Sequences

Quiz
•
9th - 12th Grade