
DSA AI- B

Quiz
•
Computers
•
University
•
Medium
Siva G
Used 1+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Knowledge Knockout[Quiz Round](2nd-4th years)

Quiz
•
University
14 questions
16) 211.3 Managing mailbox access

Quiz
•
University
15 questions
Linked List (Chapter 2)

Quiz
•
University
15 questions
Introduction to Azure

Quiz
•
University
13 questions
KUIZ KP10

Quiz
•
University
15 questions
5. Manajemen Proses

Quiz
•
University
10 questions
untitled

Quiz
•
University
17 questions
Graph Theory Data Structures

Quiz
•
University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Would you rather...

Quiz
•
KG - University
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
10 questions
The Constitution, the Articles, and Federalism Crash Course US History

Interactive video
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
16 questions
Water Modeling Activity

Lesson
•
11th Grade - University
10 questions
ACT English prep

Quiz
•
9th Grade - University