Java Collections

Java Collections

Professional Development

14 Qs

quiz-placeholder

Similar activities

Understanding what is Go

Understanding what is Go

Professional Development

10 Qs

Python_DS2

Python_DS2

Professional Development

10 Qs

Django #1 (basic)

Django #1 (basic)

1st Grade - Professional Development

15 Qs

Python Basics II

Python Basics II

Professional Development

12 Qs

TalentNext Test Day-13-Core Java Topics

TalentNext Test Day-13-Core Java Topics

Professional Development

10 Qs

NCP - AI Quiz

NCP - AI Quiz

Professional Development

10 Qs

Circular Linked List

Circular Linked List

Professional Development

15 Qs

PJP Apr 23

PJP Apr 23

Professional Development

10 Qs

Java Collections

Java Collections

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

Assistant Chennai

Used 506+ times

FREE Resource

14 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

Which of the following statement about Set is true?

A HashSet cannot have a null value.

Set allows duplicate values.

Set allows null values but only single occurrence.

Set extends the Java.util.collection interface.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

-Entries are organized as key/value pairs.

-Duplicate entries replace old entries.

-Entries are sorted using a Comparator or the Comparable interface.

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

List

Map

Set

SortedSet

SortedMap

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

{1=C, 2=JavaEE, 4=Python, 3=PHP}

{1=C, 2=JavaSE, 3=Python, 4=PHP}

{1=C, 2=JavaEE, 3=Python, 4=PHP}

{1=C, 2=JavaSE,2=JavaEE, 3=Python, 4=PHP}

NullPointerException

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

{null=null, a=null, b=JavaSE, c=PHP, d=Python}

{a=null, b=JavaSE, c=PHP, d=Python}

{b=JavaSE, c=PHP, d=Python}

Compilation Fails

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

4

5

6

12

7.

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?