Data Structures - Stacks

Data Structures - Stacks

12th Grade

35 Qs

quiz-placeholder

Similar activities

numeric functions in mysql vaishali lamba

numeric functions in mysql vaishali lamba

12th Grade

34 Qs

Computer Architecture

Computer Architecture

11th - 12th Grade

40 Qs

MS office 2016

MS office 2016

1st Grade - Professional Development

40 Qs

Assessment Term 2.2 - Y9 U4 Python Search algorithms

Assessment Term 2.2 - Y9 U4 Python Search algorithms

7th - 12th Grade

30 Qs

python functions

python functions

12th Grade

36 Qs

Unit 1 Module 1 Review

Unit 1 Module 1 Review

9th - 12th Grade

32 Qs

1.4.2 Data Structures

1.4.2 Data Structures

12th Grade

32 Qs

Programming Languages

Programming Languages

12th Grade

30 Qs

Data Structures - Stacks

Data Structures - Stacks

Assessment

Quiz

Computers

12th Grade

Practice Problem

Medium

Created by

R Woodruff

Used 14+ times

FREE Resource

AI

Enhance your content in a minute

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

35 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Consider the following operation performed on a stack of size 5.

Push(1);

Pop();

Push(2);

Push(3);

Pop();

Push(4);

Pop();

Pop();

Push(5);

After the completion of all operation, what is the number of elements present on the stack

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which form of access is used to add remove nodes from a stack?

LIFO

FIFO

LILO

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to add an element to a Stack?

add()

enqueue()

push()

pop()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What method is used to return an element from a stack without removing it?

dequeue()

NextItem()

peek()

pop()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the element "A B C D" are placed in a stack and are deleted one at a time

in what order will they be removed?

ABCD

DBCA

DCBA

DABC

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these data structures is LIFO?

Stack

Queue

Binary Tree

Double linked list

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Storage for data defined in terms of set of operations to be performed on the data

Arrays

Variables

Abstract Data Types

Data Types

Create a free account and access millions of resources

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?