Unit 4 Maps - Java - CSIII

Quiz
•
Computers
•
11th Grade
•
Medium
Antonio Leon
Used 1+ 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
14 questions
Java HashMap Quiz

Quiz
•
11th Grade
13 questions
Dojo - Type Inference

Quiz
•
1st - 12th Grade
10 questions
Hashing, Digital Signatures and BlockChain Practice Questions

Quiz
•
11th Grade
15 questions
Year 12 Programming

Quiz
•
11th - 12th Grade
16 questions
IBA Chapter 8B

Quiz
•
8th - 12th Grade
13 questions
015_Key Exchange - CompTIA Security+ SY0-701 - 1.4

Quiz
•
9th Grade - University
16 questions
Javascript Basics

Quiz
•
9th - 12th Grade
16 questions
Loops

Quiz
•
5th - 12th Grade
Popular Resources on Wayground
50 questions
Trivia 7/25

Quiz
•
12th Grade
11 questions
Standard Response Protocol

Quiz
•
6th - 8th Grade
11 questions
Negative Exponents

Quiz
•
7th - 8th Grade
12 questions
Exponent Expressions

Quiz
•
6th Grade
4 questions
Exit Ticket 7/29

Quiz
•
8th Grade
20 questions
Subject-Verb Agreement

Quiz
•
9th Grade
20 questions
One Step Equations All Operations

Quiz
•
6th - 7th Grade
18 questions
"A Quilt of a Country"

Quiz
•
9th Grade