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

Queue c++

Quiz
•
Computers
•
12th Grade
•
Hard
Manoj R
Used 4+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
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
Similar Resources on Quizizz
15 questions
Ψηφιακό Φροντιστήριο - Επανάληψη Ουράς

Quiz
•
12th Grade
12 questions
Queue Concepts and Operations

Quiz
•
12th Grade
8 questions
CCST - Bandwith, Delay and Jitter - CH 9

Quiz
•
9th - 12th Grade
10 questions
Queues and Circular Queues Quiz

Quiz
•
12th Grade
5 questions
Quiz sobre Estructuras de Datos

Quiz
•
12th Grade
10 questions
Fundamentals of Computer Systems Data Structures Quiz

Quiz
•
12th Grade
15 questions
Berpikir Komputasional Informatika X

Quiz
•
9th - 12th Grade
15 questions
INFORMATIKA 10 SMT 1 PAS HAL 060

Quiz
•
9th - 12th Grade
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
20 questions
Taxes

Quiz
•
9th - 12th Grade
17 questions
Parts of Speech

Quiz
•
7th - 12th Grade
20 questions
Chapter 3 - Making a Good Impression

Quiz
•
9th - 12th Grade
20 questions
Inequalities Graphing

Quiz
•
9th - 12th Grade
10 questions
Identifying equations

Quiz
•
KG - University