
Quiz on Data Structures & Algorithms: Queue

Quiz
•
Computers
•
12th Grade
•
Medium
Jobert Grapa
Used 1+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What principle does a Queue Data Structure follow?
FIFO (First In – First Out)
LOFI (Last Out – First In)
FILO (First In – Last Out)
LIFO (Last In – First Out)
2.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What operation removes data from the front of the queue?
dequeue()
isFull()
enqueue()
peek()
3.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Which operation checks if the queue is empty?
isEmpty()
size()
peek()
isFull()
4.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What happens when a queue is full?
Data can be added only when it is empty
New data can be added immediately
Data can be added at any position
Data can be added at the front
5.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What does the peek() operation do?
Checks if the queue is full
Returns the data at the front of the queue
Adds data to the queue
Removes data from the queue
6.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
What is the limitation of the Queue Data Structure?
It cannot remove elements
It can add elements at any position
It can be accessed randomly
It can only hold a fixed number of elements
7.
MULTIPLE CHOICE QUESTION
10 sec • 2 pts
Which of the following is NOT a queue operation?
enqueue()
dequeue()
isEmpty()
insert()
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
SOAL POST TEST BANDWIDTH PERT KE 1

Quiz
•
9th - 12th Grade
14 questions
Load balancing -AIJ SMKN 1 Soreang

Quiz
•
12th Grade
10 questions
BTEC National ICT U2 - Database Theory Lesson 1-3

Quiz
•
12th Grade
15 questions
Data Structures

Quiz
•
12th Grade
10 questions
Computer Software

Quiz
•
9th - 12th Grade
10 questions
Soal Tentang Router Mikrotik

Quiz
•
12th Grade
10 questions
SSK20193 KUIZ DUA

Quiz
•
12th Grade - University
15 questions
PEMANTAPAN TKJ

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

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade