KS5 - Stacks - MMD

KS5 - Stacks - MMD

11th Grade

31 Qs

quiz-placeholder

Similar activities

Types of Families and the Family Life Cycle

Types of Families and the Family Life Cycle

9th - 12th Grade

35 Qs

Test Taking Strategies

Test Taking Strategies

11th Grade

36 Qs

IT Security Revision - Quiz 1

IT Security Revision - Quiz 1

11th Grade

30 Qs

Capitalization,Spelling & Punctuation

Capitalization,Spelling & Punctuation

4th - 12th Grade

30 Qs

Soal materi Morse dan Semaphore

Soal materi Morse dan Semaphore

10th - 12th Grade

30 Qs

Journal Entries

Journal Entries

11th Grade

30 Qs

Grassroot Democracy

Grassroot Democracy

4th Grade - University

27 Qs

Mental Health vocabulary quiz

Mental Health vocabulary quiz

9th - 12th Grade

32 Qs

KS5 - Stacks - MMD

KS5 - Stacks - MMD

Assessment

Quiz

Education

11th Grade

Practice Problem

Hard

Created by

muhammad abdulmajeed

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?