Search Header Logo

Java Collection Set

Authored by A Vijay Kumar

Computers

University

Used 23+ times

Java Collection Set
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 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 SELECT QUESTION

30 sec • 1 pt

Which of the following statements are true with respect to sets as objects of Hashset?

Set is always an ordered group of objects.

Set allows duplicate objects.

Set does not allow duplicate objects.

Set supports iterators.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following interfaces declares a core method that all collections will have?

EventListener

Comparator

Set

Collection

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are correct with respect to a Map in Java?

A map can have iterators for accessing its elements.

The elements of a map are accessed by the respective keys.

Maps are the same as a SortedSet.

None of these.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following interfaces must contain a unique element?

List

Set

Array

Collection

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of the following statements are correct with respect to a List in Java?

A List is implemented in the "first-in, first-out" (FIFO) order.

A List is implemented in the "first-in, last-out" (FILO) order.

Lists support duplicate items.

None of these.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We need to access elements frequently by using index...

Which one is better solution?

Set

List

Map

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?