Introduction to Hashmaps

Introduction to Hashmaps

6th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Quiz 9 (15.09.2021)

Quiz 9 (15.09.2021)

1st - 12th Grade

10 Qs

TEKNOLOGI MAKLUMAT DAN KOMUNIKASI T6

TEKNOLOGI MAKLUMAT DAN KOMUNIKASI T6

6th Grade

10 Qs

TIK KELAS 6 BAB 5

TIK KELAS 6 BAB 5

6th Grade

10 Qs

Java Collection

Java Collection

12th Grade

10 Qs

Windows 10 Basics

Windows 10 Basics

9th - 12th Grade

10 Qs

7 ICT Sem 2 Reviewer

7 ICT Sem 2 Reviewer

7th Grade

10 Qs

Pemrograman Dasar

Pemrograman Dasar

10th Grade

10 Qs

 Introduction to Hashmaps

Introduction to Hashmaps

Assessment

Quiz

Computers

6th - 12th Grade

Hard

Created by

Whizara Teacher

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What type of data is stored in a Hashmap?

Lists

Key-value pairs

Tuples

Arrays

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which method is used to add a new key-value pair to a Hashmap in Java?

add()

put()

remove()

delete()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hashmaps are _____.

ordered

unordered

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

____ have to be unique in a Hashmap.

keys

values

both keys and values

none of the mentioned

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

How can we get the total Set of keys in a Hashmap?

no such method

Set<String> keySet = hashMap.keySet();

Set<String> keySet = hashMap.get();