Circular queue

Circular queue

University

13 Qs

quiz-placeholder

Similar activities

The DSA Adventure - Day 5

The DSA Adventure - Day 5

University

12 Qs

SD_Stack&Queue

SD_Stack&Queue

University

10 Qs

Queue

Queue

University

17 Qs

Data structures

Data structures

University

12 Qs

DSA Launchpad 2.0

DSA Launchpad 2.0

University

10 Qs

Queues Multiple Choice Question

Queues Multiple Choice Question

University

12 Qs

Queues

Queues

University

10 Qs

DSQUIZ 2020-21

DSQUIZ 2020-21

University

18 Qs

Circular queue

Circular queue

Assessment

Quiz

Computers

University

Medium

Created by

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?