
CollectionsFramework
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Satish T
Used 2+ times
FREE Resource
Enhance your content in a minute
30 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
How to retrieve all keys from a Map?
Answer explanation
map.keySet() returns a Set of keys.
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Set<Integer> s = new HashSet<>(); s.add(1); s.add(1); s.size(); // What is the size?
Answer explanation
Set doesn't allow duplicates. Only one element remains.
3.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
Stack is which type of structure?
Answer explanation
Stack is Last-In-First-Out.
4.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
TreeSet stores elements in which order?
Answer explanation
TreeSet sorts elements in natural order.
5.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does ListIterator allow?
Answer explanation
ListIterator supports bi-directional traversal.
6.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does poll() return when queue is empty?
Answer explanation
poll() returns null if queue is empty.
7.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
What does removeIf() method do?
Answer explanation
removeIf() removes items matching predicate.
Access all questions and much more by creating a free account
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
Already have an account?
Similar Resources on Wayground
25 questions
Cybersecurity Essentials Chapter 4 Review
Quiz
•
9th Grade - University
25 questions
X Informatika UH 1
Quiz
•
10th Grade - University
25 questions
Conocimiento de Sentencias SQL
Quiz
•
University
25 questions
¿Sabes más que un estudiante de avanzada? 2023-1
Quiz
•
University
25 questions
UTS BASIS DATA TERDISTRIBUSI
Quiz
•
University
25 questions
CYBERPRENEURSHIP - CHAPTER 1
Quiz
•
University
30 questions
[QUIZ] Chapter 1 - Chapter 3
Quiz
•
University
25 questions
Cloud Infrastructure Mechanisms
Quiz
•
University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
