UNIT-2 QUEUE PROBLEM

UNIT-2 QUEUE PROBLEM

University

5 Qs

quiz-placeholder

Similar activities

Quiz 12: Templates, STL

Quiz 12: Templates, STL

University

10 Qs

INB23503 Quiz Chapter 10

INB23503 Quiz Chapter 10

University

10 Qs

Simulation_Lab2_Week1

Simulation_Lab2_Week1

University

10 Qs

Quiz-AIML

Quiz-AIML

University

10 Qs

Quiz Aplikom 01 - MPI 20213

Quiz Aplikom 01 - MPI 20213

University

10 Qs

Struktur dan pemrosesan data

Struktur dan pemrosesan data

University

10 Qs

Populos University

Populos University

University

10 Qs

Unit - 4 Network Analysis & DEM

Unit - 4 Network Analysis & DEM

University

10 Qs

UNIT-2 QUEUE PROBLEM

UNIT-2 QUEUE PROBLEM

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

JASPIN K

Used 3+ times

FREE Resource

AI

Enhance your content in a minute

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

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Let the following circular queue can accommodate 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, ___

front = 3 rear = 5

queue = L, M, N, O, ___

front = 3 rear = 4

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

front = 2 rear = 4

queue = L, M, N, O, ___

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A circular queue is implemented using an array of size 10. The array index starts with 0, front is 6, and rear is 9. The insertion of next element takes place at the array index.

0

7

9

10

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the numbers 5, 10, 3, 42 are enqueued onto a queue in that order, what does dequeue return?

5

10

3

42

4.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

A queue of characters currently contained a,b,c,d. What would be the contents of queue after the following operationDELETE, ADD W, ADD X, DELETE, ADD Y.

A,B,C,W,Y

A,B,C,D,W

C,D,W,X,Y

W,Y,X,C,D

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Suppose you have the following series of queue operations.

q = Queue();

q.enqueue('hello');

q.enqueue('dog');

q.enqueue(3);

q.dequeue();

What items are left on the queue?

'hello', 'dog'

'dog', 3

'hello', 3

'hello', 'dog', 3

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?

Discover more resources for Computers