Queues and Stacks

Queues and Stacks

12th Grade

10 Qs

quiz-placeholder

Similar activities

Linked Lists in Visual Basic

Linked Lists in Visual Basic

12th Grade

15 Qs

Pretest Tumpukan dan Antrean

Pretest Tumpukan dan Antrean

10th Grade - University

10 Qs

هياكل البيانات_المكدس _علوم الحاسب_12

هياكل البيانات_المكدس _علوم الحاسب_12

12th Grade

10 Qs

AS Computing: Data Structures

AS Computing: Data Structures

10th Grade - University

15 Qs

1.4 Data Structures #1

1.4 Data Structures #1

12th Grade

15 Qs

ADT recap!

ADT recap!

10th - 12th Grade

15 Qs

Quiz sobre Estructuras de Datos

Quiz sobre Estructuras de Datos

12th Grade

5 Qs

XII_REVISION FOR FIRST UNIT TEST

XII_REVISION FOR FIRST UNIT TEST

12th Grade

15 Qs

Queues and Stacks

Queues and Stacks

Assessment

Quiz

Computers

12th Grade

Easy

Created by

Jay Ho

Used 20+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following usees FIFO method

Queue

stack

linklist

binary tree

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

This form of access is used to add and remove nodes from a queue.

LIFO, Last In First Out

FIFO, First In First Out

Both a and b

none

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

........ form of access is used to add remove nodes from a stack.
LIFO
Fifo
none
all

4.

MULTIPLE CHOICE QUESTION

30 sec • 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, the number of elements present on stack are

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 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, the number of elements present on stack are

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

dequeue()

enqueue()

push()

pop()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

dequeue()

enqueue()

push()

pop()

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?