Queues and Circular Queues

Queues and Circular Queues

University

10 Qs

quiz-placeholder

Similar activities

Quiz 4 - Queue ADT

Quiz 4 - Queue ADT

University

13 Qs

DATA STRUCTURES QUIZ

DATA STRUCTURES QUIZ

University

15 Qs

QUIZ-9 QUEUES INTRODUCTION

QUIZ-9 QUEUES INTRODUCTION

University

5 Qs

Quiz 1 - AK2 Section

Quiz 1 - AK2 Section

University

10 Qs

UNIT-2 QUEUE

UNIT-2 QUEUE

University

10 Qs

Stack & Queue

Stack & Queue

University

10 Qs

DSA Day 3

DSA Day 3

University

9 Qs

Queues

Queues

11th Grade - Professional Development

15 Qs

Queues and Circular Queues

Queues and Circular Queues

Assessment

Quiz

Computers

University

Hard

Created by

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

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?