Java Collections Dr LJK

Java Collections Dr LJK

Professional Development

10 Qs

quiz-placeholder

Similar activities

quiz utk FL dan BBC 23 Juli 2022

quiz utk FL dan BBC 23 Juli 2022

Professional Development

15 Qs

Prevent 2019-20

Prevent 2019-20

Professional Development

11 Qs

SOAL PRETEST PPG 5

SOAL PRETEST PPG 5

Professional Development

10 Qs

N/A-Clase3: EXPLICA: Biodivesidad, Mecanismos, Materia

N/A-Clase3: EXPLICA: Biodivesidad, Mecanismos, Materia

Professional Development

10 Qs

Sosialisasi KM 211 Tahun 2020

Sosialisasi KM 211 Tahun 2020

Professional Development

15 Qs

02. Quiz Sosialisasi

02. Quiz Sosialisasi

Professional Development

15 Qs

DICEST - Talent Khoj - 8-April

DICEST - Talent Khoj - 8-April

Professional Development

10 Qs

TryOut Karyawan Mar'22

TryOut Karyawan Mar'22

Professional Development

10 Qs

Java Collections Dr LJK

Java Collections Dr LJK

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Hard

Created by

Jayakumar Loganathan

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

-Contains no duplicate elements.

-Can contain at most one Null value.

-Elements are not key-value pairs.

-Accessing an element can be almost as fast as performing a similar operation on an array.


Which of these classes provides the specified features?

LinkedList

TreeMap

HashSet

LinkedHashMap

HashMap

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

4

5

6

12

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

-Entries are not organized as key/value pairs.

-Duplicate entries are rejected.

Which interface of the java.util package offers the specified behavior?

List

Map

Set

None of the above

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

[Computer, Network, Networks, Programming, Security]

[Computer, Programming, Network, Networks, Programming, Security]

[Computer, Programming, Computer, Networks, Network, Security]

[Computer, Networks, Network, Programming, Security]

5.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Which of the following is/are correct statements?

HashSet class implements the Set interface

HashSet does not allow duplicate elements that means you can not store duplicate values in HashSet.

HashSet permits to have a single null value.

HashMap does not allow duplicate keys however it allows to have duplicate values.

HashMap and HashSet are threadsafe

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

List listNames = new ArrayList();

listNames.add("Tom");

listNames.add("Mary");

listNames.add("Peter");


String name2 = (String) listNames.get(1);

System.out.println(name2);

What is the output of the above code

Tom

Mary

Peter

raises Exception

7.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

What is the list nums if it is initially [5, 3, 1] and the following code is executed?

nums.add(6);

nums.add(0, 4);

nums.remove(1);

[4, 3, 1, 6]

[5, 3, 1, 6]

[4, 3, 6]

[4, 5, 3, 6]

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?