Circular queue

Quiz
•
Computers
•
University
•
Medium
Eben Sophia Paul
Used 25+ times
FREE Resource
13 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Circular Queue is ________ data structure.
linear
non-linear
both linear and non-linear
none
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
front = rear if and only if queue is full.
True
False
3.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
In circular queue, to add an element it will be necessary to move rear one position clockwise.
True
False
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
in circular queue _______ will always point one position counterclockwise from the first element in queue.
Top
Rear
Front
All positions
5.
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–-
6.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
What is the time complexity of enqueue operation?
O(logn)
O(nlogn)
O(n)
O(1)
7.
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
Create a free account and access millions of resources
Similar Resources on Wayground
15 questions
Stack

Quiz
•
University
10 questions
Sumatif Akhir Informatika

Quiz
•
1st Grade - University
10 questions
Queues and Circular Queues

Quiz
•
University
17 questions
QUEUE

Quiz
•
University
9 questions
DSA Day 3

Quiz
•
University
15 questions
Stacks and Queues Quiz

Quiz
•
University
14 questions
Data Structure

Quiz
•
University
10 questions
Algoritmo y Estructura de datos S12

Quiz
•
12th Grade - University
Popular Resources on Wayground
11 questions
Hallway & Bathroom Expectations

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
10 questions
"LAST STOP ON MARKET STREET" Vocabulary Quiz

Quiz
•
3rd Grade
19 questions
Fractions to Decimals and Decimals to Fractions

Quiz
•
6th Grade
16 questions
Logic and Venn Diagrams

Quiz
•
12th Grade
15 questions
Compare and Order Decimals

Quiz
•
4th - 5th Grade
20 questions
Simplifying Fractions

Quiz
•
6th Grade
20 questions
Multiplication facts 1-12

Quiz
•
2nd - 3rd Grade