
Queue c++
Authored by Manoj R
Computers
12th Grade
Used 4+ times

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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
Excel Data Validation Quiz
Quiz
•
9th - 12th Grade
10 questions
Onshape - Intro to CAD - Unit 1 Vocab
Quiz
•
9th - 12th Grade
14 questions
WALMART @Information system management
Quiz
•
12th Grade
10 questions
Kuiz Pemantapan Latihan Amali Pangkalan Data
Quiz
•
12th Grade
10 questions
Working with tables
Quiz
•
5th - 12th Grade
15 questions
TKJ
Quiz
•
12th Grade - University
15 questions
Ôn tập kỳ 2 tin 6
Quiz
•
1st - 12th Grade
8 questions
ÔN THI HKI _ TIN HỌC 4
Quiz
•
12th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade