
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
ROTC Make-up Quiz

Quiz
•
University
20 questions
SMARTICUS

Quiz
•
University
15 questions
Stack

Quiz
•
University
14 questions
A-Level Computer Science Data Structures Quiz

Quiz
•
12th Grade - University
20 questions
Quantitative Aptitude Series

Quiz
•
University
10 questions
Quiz on Queue Concepts 1

Quiz
•
University
20 questions
Output Quiz-7

Quiz
•
University
20 questions
data structures1

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University