Stack ADT

Stack ADT

5th Grade

9 Qs

quiz-placeholder

Similar activities

Creating Quantitative Exercise and Organogram Word Processing

Creating Quantitative Exercise and Organogram Word Processing

5th Grade

10 Qs

Which of these softwares???

Which of these softwares???

4th - 5th Grade

13 Qs

Understanding windows

Understanding windows

5th Grade

10 Qs

Grade5_Unit3_Lesson3

Grade5_Unit3_Lesson3

5th Grade

10 Qs

Charecterestic and Evolution of computer

Charecterestic and Evolution of computer

5th Grade

10 Qs

Quiz on MS Excel (Part 3) [G6]

Quiz on MS Excel (Part 3) [G6]

4th - 6th Grade

10 Qs

Code org Quiz lesson 1-6

Code org Quiz lesson 1-6

5th Grade

10 Qs

Digcit 5-6

Digcit 5-6

5th - 6th Grade

10 Qs

Stack ADT

Stack ADT

Assessment

Quiz

Computers

5th Grade

Practice Problem

Medium

Created by

Colin Leod

Used 37+ times

FREE Resource

AI

Enhance your content in a minute

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

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Process of adding an element to a stack is

Create

Push

Evaluation

Pop

2.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Process of removing an element from the stack

Create

Push

Evaluation

Pop

3.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

In a stack, if a user tries to remove an element from an empty stack it is called

Underflow

Empty Collection

Overflow

Garbage Collection

4.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Pushing an element into a stack already having six elements and the size is six, then the stack has

Overflow

Crash

Underflow

User flow

5.

MULTIPLE CHOICE QUESTION

10 sec • 1 pt

Stack Data Structure is

FIFO

None of these

LILO

LIFO

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider the following function where Max is the maximum amount of elements in a stack


Procedure Demo(newItem)

Begin

If topValue = Max then

print "It is full"


else

topValue = topValue + 1

Stack(topValue) = newItem

End Procedure


The algorithm above is designed to show how

values are popped off a stack

values are pushed into a stack

top values can be replaced

values can be replaced in a stack

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

LEMON     ----- Top
ROSE
CARROT
CORN
TULIP

After three POP operations have been performed on the above stack, the three items, in order, which will be taken out of the stack are

LEMON, ROSE, CARROT

ROSE, CARROT, CORN

TULIP, CORN, CARROT

CARROT, CORN, TULIP

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?