
Queues and Circular Queues

Quiz
•
Computers
•
University
•
Hard
RAVIKANTH K
Used 11+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following properties is associated with a queue?
First In Last Out
First In First Out
Last In First Out
Last In Last Out
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
In a circular queue, how do you increment the rear end of the queue?
rear++
(rear+1) % SIZE
(rear % SIZE)+1
d) rear–-
3.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the time complexity of enqueue operation?
O(logn)
O(nlogn)
O(n)
O(1)
4.
MULTIPLE CHOICE QUESTION
45 sec • 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
5.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which is not the type of queue?
Single ended queue
Ordinary queue
Circular queue
Priority queue
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A queue(ARR) of size 5:
enqueue(1)
enqueue(2)
enqueue(3)
enqueue(4)
enqueue(5)
dequeue()
Now how many more elements can be enqueued ARR?
1
2
0
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
In Circular Queue (ARR) of size 3:
enqueue(1)
enqueue(2)
enqueue(3)
dequeue()
enqueue(4)
Index of Element 4?
0
1
2
3
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
Queue

Quiz
•
University
15 questions
Queue - Data Structures

Quiz
•
University
9 questions
Quiz on Data Structures

Quiz
•
University
15 questions
LLJ 2

Quiz
•
University
5 questions
DSA day 4

Quiz
•
University
15 questions
Queues

Quiz
•
11th Grade - Professi...
5 questions
DSA Quiz 24.7.2024

Quiz
•
University
10 questions
Understanding Stacks and Queues

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