Data Structures and Algorithms - Prefinal Quiz
Quiz
•
Education
•
University
•
Hard
Marilou Bartolome
Used 21+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 2 pts
It is a type of queue where elements are processed based on their order either natural or custom.
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
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
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?
Similar Resources on Wayground
13 questions
ETP - QUESTIONNAIRE DESIGN
Quiz
•
University
20 questions
UT- 2 (Quiz on verilog)
Quiz
•
University
10 questions
Google and Chromebooks at Petroc
Quiz
•
University
17 questions
LEGAL SYSTEMS
Quiz
•
University
15 questions
UH 1, Diesel Common Rail (PMKR 3)
Quiz
•
University
20 questions
#01 Kendali Proses - Pendahuluan
Quiz
•
University
10 questions
Educational Technology
Quiz
•
University
15 questions
Manners, Etiquettes and Dress code
Quiz
•
University
Popular Resources on Wayground
20 questions
Halloween Trivia
Quiz
•
6th - 8th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
15 questions
Order of Operations
Quiz
•
5th Grade
20 questions
Halloween
Quiz
•
5th Grade
16 questions
Halloween
Quiz
•
3rd Grade
12 questions
It's The Great Pumpkin Charlie Brown
Quiz
•
1st - 5th Grade
20 questions
Possessive Nouns
Quiz
•
5th Grade
10 questions
Halloween Traditions and Origins
Interactive video
•
5th - 10th Grade
