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
10 questions
Quiz 9 (15.09.2021)

Quiz
•
1st - 12th Grade
10 questions
Prova Programação Back end

Quiz
•
3rd Grade - University
15 questions
1er Quiz Fundamentos de Programación - SystemPlus

Quiz
•
9th - 12th Grade
12 questions
Coding and Robotics

Quiz
•
8th - 12th Grade
15 questions
JAVA: Level-1

Quiz
•
5th - 12th Grade
11 questions
Computer Programming: Graphics

Quiz
•
8th - 11th Grade
16 questions
Codecademy Intro to JavaScript

Quiz
•
9th - 12th Grade
10 questions
Java Arithmetic Operators Quiz

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade