Java Collection Set

Java Collection Set

University

15 Qs

quiz-placeholder

Similar activities

DSA quiz 3 set 1

DSA quiz 3 set 1

University

10 Qs

SOFTWARE 7I

SOFTWARE 7I

7th Grade - University

20 Qs

Python Quiz

Python Quiz

University

15 Qs

Coding Karel 2

Coding Karel 2

KG - University

20 Qs

Computer Hardware - CPU & GPU

Computer Hardware - CPU & GPU

7th Grade - University

16 Qs

Hands-on Modul 3

Hands-on Modul 3

University

10 Qs

Java Quiz 4

Java Quiz 4

University

15 Qs

Visual Basic 2010

Visual Basic 2010

8th Grade - University

10 Qs

Java Collection Set

Java Collection Set

Assessment

Quiz

Computers

University

Hard

Created by

A Vijay Kumar

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

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

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?