It is a type of queue where elements are processed based on their order either natural or custom.
Data Structures and Algorithms - Prefinal Quiz

Quiz
•
Education
•
University
•
Hard

Marilou Bartolome
Used 20+ times
FREE Resource
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Priority Queue
Array List
Min Heap
Max Heap
2.
MULTIPLE SELECT QUESTION
45 sec • 2 pts
Which of the following creates an empty set in Java?
a = set()
Set a = new HashSet ();
A = set [ ]
Set a = new TreeSet ();
3.
MULTIPLE CHOICE QUESTION
30 sec • 2 pts
Which statement determine whether a map contains the value "Pre-final" with the PF identifier?
thisMap.containsKey("Pre-final");
thisMap.containsValue("PF");
thisMap.containsKey("PF");
thisMap.containsValue("Prefinal");
4.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
It is a complete binary tree where the value of each parent node is either higher or lower than the value of its child nodes.
Priority Queue
Heap
Array List
Queue
5.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
Priority Queues can be implemented in Java using the PriorityQueue class from the ___________ package.
java.scanner
Java.io
java.linkedlist
java.util
6.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
A collection of elements where each element is unique.
HashSet
TreeSet
Set
LinkedHashSet
7.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
This stores its elements in a hash table without a guaranteed order upon iteration.
Set
HashSet
TreeSet
LinkedHashSet
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
Operating Systems

Quiz
•
University
15 questions
Introduction to Computer organisation

Quiz
•
University
11 questions
Basic Map Reading

Quiz
•
University
10 questions
Uji Pemahaman Koding SMA

Quiz
•
University
10 questions
Graphic Organizers

Quiz
•
University
10 questions
Análisis de formas verbales pasivas en latín

Quiz
•
University
10 questions
EEE -A DS Quiz -4

Quiz
•
University
10 questions
nuts

Quiz
•
University
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