DSA AI- B

DSA AI- B

University

15 Qs

quiz-placeholder

Similar activities

BB

BB

University

10 Qs

Latex

Latex

University

11 Qs

Tree and Planar Graph

Tree and Planar Graph

University

10 Qs

Pra UPS 2

Pra UPS 2

University

20 Qs

Python Quiz 1.4

Python Quiz 1.4

University

12 Qs

Tes Awal Modul 5 CC

Tes Awal Modul 5 CC

University

10 Qs

Logika Fuzzy

Logika Fuzzy

University

10 Qs

DSA AI- B

DSA AI- B

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Siva G

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

15 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, ___, ___

a) front = 2 rear = 5

queue = ______; L, M, N, O

b) front = 3 rear = 5

___ queue = L, M, N, O

c) front = 3 rear = 4

queue = ______; L, M, N, O

d) front = 2 rear = 4

___ queue = L, M, N, O

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Consider a circular queue that can hold a maximum of five elements with the following
data:
front = 1 rear = 3
queue = _______; A, B, C, ___, ___

a) front = 1 rear = 4

queue = ______; A, B, C, D

b) front = 2 rear = 4

___ queue = A, B, C, D

c) front = 2 rear = 3

queue = ______; A, B, C, D

d) front = 1 rear = 3

___ queue = A, B, C, D

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a circular queue with a maximum capacity of seven elements, the current state is:
front = 0 rear = 5
queue = _______; P, Q, R, S, T, ___, ___

a) front = 0 rear = 6

queue = ______; P, Q, R, S, T, U

b) front = 1 rear = 6

___ queue = P, Q, R, S, T, U

c) front = 1 rear = 5

queue = ______; P, Q, R, S, T, U

d) front = 0 rear = 5

___ queue = P, Q, R, S, T, U

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a circular queue that can accommodate a maximum of eight elements, the following
data is provided:
front = 3 rear = 7
queue = _______; X, Y, Z, ___, ___, ___, ___, ___

a) front = 3 rear = 0

queue = ______; X, Y, Z, A, B, C, D, E

b) front = 4 rear = 0

___ queue = X, Y, Z, A, B, C, D, E

c) front = 4 rear = 7

queue = ______; X, Y, Z, A, B, C, D, E

d) front = 3 rear = 7

___ queue = X, Y, Z, A, B, C, D, E

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How many stacks are needed to implement a queue. Consider the situation where no other
data structure like arrays, linked list is available to you

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

In a circular queue with a maximum capacity of ten elements, the current state is:
front = 4 rear = 8
queue = _______; A, B, C, D, E, F, G, H, I, ___

a) front = 4 rear = 9

queue = ______; A, B, C, D, E, F, G, H, I, J

b) front = 5 rear = 9

___ queue = A, B, C, D, E, F, G, H, I, J

c) front = 5 rear = 8

queue = ______; A, B, C, D, E, F, G, H, I, J

d) front = 4 rear = 8

___ queue = A, B, C, D, E, F, G, H, I, J

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given a circular queue that can hold a maximum of four elements, the following
data is provided:
front = 1 rear = 2
queue = _______; J, K, ___, ___

a) front = 1 rear = 3

queue = ______; J, K, L

b) front = 2 rear = 3

___ queue = J, K, L

c) front = 2 rear = 2

queue = ______; J, K, L

d) front = 1 rear = 2

___ queue = J, K, L

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?