Java Practice Quiz

Java Practice Quiz

Professional Development

30 Qs

quiz-placeholder

Similar activities

300-quiz01-java

300-quiz01-java

C4 Week10Monday

C4 Week10Monday

Exam 2 MC

Exam 2 MC

Java Inheritance

Java Inheritance

Java Collection

Java Collection

Java ArrayList

Java ArrayList

ArrayLists and Large Data Sets Quiz

ArrayLists and Large Data Sets Quiz

Java Practice Quiz

Java Practice Quiz

Assessment

Quiz

Professional Development

Professional Development

Hard

Created by

342856_Amit Upadhyay_JH

Used 67+ times

FREE Resource

AI

Enhance your content in a minute

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

30 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these classes provides the specified features?


-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.

LinkedList

TreeMap

HashSet

LinkedHashMap

HashMap

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these interface is not part of Java’s collection framework?

List

Sorted List

Set

Sorted Map

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which of these return type of hasNext() method of an iterator?

Integer

Double

Boolean

Collections Object

4.

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.

5.

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

6.

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

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

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?