
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
26 questions
Typescript class 02
Quiz
•
University
25 questions
UAS Sistem Digital 2020/2021
Quiz
•
University
29 questions
2DO PARCIAL DB
Quiz
•
University
25 questions
Concepts of Machine Learning
Quiz
•
University
25 questions
Struktur Data
Quiz
•
University
25 questions
EXAMEN PARCIAL TEÓRICO - BASE DE DATOS
Quiz
•
University
25 questions
Module 3 - Security Architecture
Quiz
•
University
25 questions
UAS - Kecerdasan Komputasional
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
