Queue c++

Queue c++

12th Grade

10 Qs

quiz-placeholder

Similar activities

Excel Lesson 2 - Working with Microsoft Excel 2016

Excel Lesson 2 - Working with Microsoft Excel 2016

9th - 12th Grade

10 Qs

Data Structures in C

Data Structures in C

12th Grade

15 Qs

QUIZ M4 Stack & Queue

QUIZ M4 Stack & Queue

1st Grade - University

14 Qs

Typing

Typing

KG - University

12 Qs

Lesson 2 - Queues

Lesson 2 - Queues

11th - 12th Grade

14 Qs

Topic 3: Quiz on Queue

Topic 3: Quiz on Queue

12th Grade

12 Qs

Excel

Excel

9th - 12th Grade

10 Qs

Data Structures Quiz

Data Structures Quiz

12th Grade

15 Qs

Queue c++

Queue c++

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Manoj R

Used 4+ times

FREE Resource

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

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?