Unit 4 Maps - Java - CSIII

Quiz
•
Computers
•
11th Grade
•
Medium
Antonio Leon
Used 2+ times
FREE Resource
11 questions
Show all answers
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()
Create a free account and access millions of resources
Similar Resources on Wayground
16 questions
Arithmetic Types Declare Initialize Relation Logical Ops

Quiz
•
9th Grade - University
10 questions
Moringa JavaScript Arrays

Quiz
•
5th Grade - Professio...
10 questions
Java Script

Quiz
•
10th - 12th Grade
15 questions
Java Scanner Quiz

Quiz
•
11th Grade
10 questions
TLE QUIZZIZ 2

Quiz
•
9th - 12th Grade
16 questions
Parts of a Method (Java)

Quiz
•
9th Grade - University
12 questions
Exit Ticket - Linked Lists and HashTables

Quiz
•
11th Grade
10 questions
JavaScript

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade