KS5 - Stacks - MMD

KS5 - Stacks - MMD

11th Grade

31 Qs

quiz-placeholder

Similar activities

Marketing Unit 1 Review

Marketing Unit 1 Review

9th - 12th Grade

35 Qs

FINAL EXAMINATION for Quantitative Research-DRRTC

FINAL EXAMINATION for Quantitative Research-DRRTC

10th - 12th Grade

30 Qs

HTML: INTRO

HTML: INTRO

11th Grade

35 Qs

Communications skills " Hospitality Industry"

Communications skills " Hospitality Industry"

9th - 12th Grade

27 Qs

Intro to Business and Technology KR

Intro to Business and Technology KR

8th Grade - Professional Development

27 Qs

Earth Space Final Exam

Earth Space Final Exam

6th - 11th Grade

26 Qs

CFM - NJROTC Uniform Regulations

CFM - NJROTC Uniform Regulations

9th - 12th Grade

29 Qs

Prepositions

Prepositions

1st - 12th Grade

30 Qs

KS5 - Stacks - MMD

KS5 - Stacks - MMD

Assessment

Quiz

Education

11th Grade

Hard

Created by

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

Media Image

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

Media Image

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?