
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
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
Similar Resources on Wayground
10 questions
MOAC Word 2016 Lesson 3

Quiz
•
8th - 12th Grade
14 questions
A-Level Computer Science Data Structures Quiz

Quiz
•
12th Grade - University
15 questions
Quiz on Data Structures & Algorithms: Queue

Quiz
•
12th Grade
10 questions
Understanding Insertion Sort Algorithm

Quiz
•
12th Grade
10 questions
SOAL PRE TES BANDWIDTH

Quiz
•
9th - 12th Grade
14 questions
Queues - Data Structures H446 Computer Science

Quiz
•
12th Grade
15 questions
Word Lesson 6

Quiz
•
9th - 12th Grade
10 questions
Word basics

Quiz
•
8th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade