
Java Maps Review
Authored by Danielle Mills
Computers
11th Grade - University
17 Questions
Used 66+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
1.
MULTIPLE CHOICE QUESTION
10 sec • 1 pt
Which of the following statement about Set is true?
A HashSet cannot have a null value.
Set allows duplicate values.
Set allows null values but only single occurrence.
Set extends the Java.util.collection interface.
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
-Entries are organized as key/value pairs.
-Duplicate entries replace old entries.
-Entries are sorted using a Comparator or the Comparable interface.
Which interface of the java.util package offers the specified behavior?
List
Map
Set
SortedSet
SortedMap
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
{1=C, 2=JavaEE, 4=Python, 3=PHP}
{1=C, 2=JavaSE, 3=Python, 4=PHP}
{1=C, 2=JavaEE, 3=Python, 4=PHP}
{1=C, 2=JavaSE,2=JavaEE, 3=Python, 4=PHP}
NullPointerException
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
{null=null, a=null, b=JavaSE, c=PHP, d=Python}
{a=null, b=JavaSE, c=PHP, d=Python}
{b=JavaSE, c=PHP, d=Python}
Compilation Fails
5.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
4
5
6
12
6.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Which statement(s) are false about maps in java?
A Map cannot contain duplicate keys and each key can map to at most one value.
A Map is an object that maps keys to values, or is a collection of attribute-value pairs.
A Map cannot contain duplicate keys and each key can map to at more than one value.
A Map is an object that maps functions to values, or is a collection of attribute-value pairs.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following TreeMap instantiations would create a TreeMap that could store String-
Integer pairs?
TreeMap<String,Integer> map;
map = new TreeMap <String,Integer>();
TreeMap<Integer,String> map;
map = new TreeMap <Integer,String>();
TreeMap<Double,String> map;
map = new TreeMap <Double,String>();
TreeMap<Boolean,String> map;
map = new TreeMap <Boolean,String>();
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?
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
55 questions
CHS Holiday Trivia
Quiz
•
12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade