Search Header Logo

Queue c++

Authored by Manoj R

Computers

12th Grade

Used 4+ times

Queue c++
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

A normal queue, if implemented using an array of size MAX_SIZE, gets full when?

Rear = MAX_SIZE – 1

Front = (rear + 1)mod MAX_SIZE

Front = rear + 1

Rear = front

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following is not the type of queue?

Ordinary queue

Single ended queue

Circular queue

Priority queue

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is the term for inserting into a full queue known as?

overflow

underflow

null pointer exception

program won’t be compiled

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Insertion and deletion operation in queue is known as

Push and Pop

Insert and Delete

Enqueue and Dequeue

None of the above

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed?

DCBA

ABDC

ABCD

DCAB

6.

MULTIPLE CHOICE QUESTION

30 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

After performing these set of operations, what does the final list look contain?

InsertFront(10);

InsertFront(20);

InsertRear(30);

DeleteFront();

InsertRear(40);

InsertRear(10);

DeleteRear();

InsertRear(15);

display();

10 30 10 15

20 30 40 15

20 30 40 10

10 30 40 15

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?