
Unit 4 Maps - Java - CSIII
Authored by Antonio Leon
Computers
11th Grade
11 Questions
Used 2+ 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
30 sec • 1 pt
What is a map in java?
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a type of Map in Java?
HashMap
LinkedHashMap
TreeMap
MapList
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will happen if you try to insert the duplicate key into a Java Map?
It will throw an exception
It will replace the old value with the new one
It will ignore the new value
Both key and value will be duplicated
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the put() function do in a Java Map?
It adds a new key-value pair to the map
It removes a key-value pair from the map
It checks if a key exists in the map
It clears all entries from the map
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to check if a Map contains a specific key?
containsKey()
hasKey()
isKey()
keyExists()
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default initial capacity of a HashMap in Java?
10
16
32
64
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What method is used to retrieve a value from a Map using a key?
getValue()
fetchValue()
get()
retrieveValue()
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
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
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
20 questions
christmas songs
Quiz
•
KG - University