Python-Stacks & Queues

Python-Stacks & Queues

12th Grade

22 Qs

quiz-placeholder

Similar activities

N+ Chapter 5

N+ Chapter 5

12th Grade

20 Qs

CS Terms and Vocab Practice Quiz 3

CS Terms and Vocab Practice Quiz 3

7th - 12th Grade

20 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Bài 1 Excel - thẻ Home

Bài 1 Excel - thẻ Home

12th Grade

20 Qs

Skill Competition Quiz 2024

Skill Competition Quiz 2024

10th Grade - University

20 Qs

Topic 4.1 Introduction to Java

Topic 4.1 Introduction to Java

12th Grade

20 Qs

Animated Canvas

Animated Canvas

9th - 12th Grade

19 Qs

Python List, and String

Python List, and String

10th Grade - University

20 Qs

Python-Stacks & Queues

Python-Stacks & Queues

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Shibi Anand

Used 257+ times

FREE Resource

AI

Enhance your content in a minute

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

22 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 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

The following circular queue can accommodate a maximum six elements with the following data

front = 2 rear = 4

queue = ____; L ; M; N; ___; ___

What will happen after ADD O operation takes place?

front = 2 rear = 5

queue = ______; L, M, N, O, ___

ront = 3 rear = 5

queue = L, M, N, O, ___

front = 3 rear = 4

queue = ______; L, M, N, O, ___

ront = 2 rear = 4

queue = L, M, N, O, ___

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?