Queues

Quiz
•
Computers
•
University
•
Medium
Gautam Gupta
Used 6+ times
FREE Resource
7 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
A queue follows __________.
First In Last Out
First In First Out
Last In First Out
2.
FILL IN THE BLANK QUESTION
20 sec • 5 pts
If elements are inserted in the order -10,-2,-3,4,-1,6 in a queue, then to delete value -3 how many dequeue operations are required?
3.
MULTIPLE CHOICE QUESTION
1 min • 10 pts
What does this function do in general?
Keeps the Q same as it was before the call i.e. no chnage observed.
Remove the last element of the Q.
Reverse the Q.
Empty the Q.
4.
MULTIPLE CHOICE QUESTION
20 sec • 5 pts
In Queue Insertion & Deletion take place at ________________.
same end
first end
different end
last end
5.
MULTIPLE CHOICE QUESTION
30 sec • 10 pts
A queue of characters currently contained A, B, C, D.
What would be the contents of queue after the following operation : DELETE, ADD W, ADD X, DELETE, ADD Y.
A,B,C,W,Y
A,B,C,D,W
C,D,W,X,Y
W,Y,X,C,D
6.
MULTIPLE SELECT QUESTION
45 sec • 10 pts
Which of the following application(s) is/are related to Queue Data Structure? There can be more than one correct answer.
Load Balancing
BFS (Breath First Search)
Recursion
Printer Spooling
Undo and Redo mechanism in text editors.
7.
MULTIPLE CHOICE QUESTION
45 sec • 10 pts
"Queue" is a queue data structure that stores integers. What does the function fun do?
Prints numbers from 0 to n-1
Prints numbers from n-1 to 0
Prints first n Fibonacci numbers
Prints fibonacci numbers between 0 and n-1
Similar Resources on Wayground
10 questions
manajemen proses

Quiz
•
University
10 questions
Topic 4: CPU Scheduling Quiz

Quiz
•
University
12 questions
Data Structures

Quiz
•
University
10 questions
HTML/CSS Quiz

Quiz
•
10th Grade - University
9 questions
Stacks/Queues

Quiz
•
University
10 questions
Antrean dan Tumpukan (BK) XA

Quiz
•
10th Grade - University
10 questions
Quiz 8: Arrays&Vector

Quiz
•
University
10 questions
DS UNIT-2 TEST-1

Quiz
•
University
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
Discover more resources for Computers
20 questions
Definite and Indefinite Articles in Spanish (Avancemos)

Quiz
•
8th Grade - University
7 questions
Force and Motion

Interactive video
•
4th Grade - University
36 questions
Unit 5 Key Terms

Quiz
•
11th Grade - University
7 questions
Figurative Language: Idioms, Similes, and Metaphors

Interactive video
•
4th Grade - University
15 questions
Properties of Equality

Quiz
•
8th Grade - University
38 questions
WH - Unit 3 Exam Review*

Quiz
•
10th Grade - University
21 questions
Advise vs. Advice

Quiz
•
6th Grade - University
12 questions
Reading a ruler!

Quiz
•
9th Grade - University