Quiz Collections in Java

Quiz Collections in Java

Professional Development

10 Qs

quiz-placeholder

Similar activities

Emerging Tech

Emerging Tech

Professional Development

15 Qs

BCMH Mobilku (10 Apr 2021)

BCMH Mobilku (10 Apr 2021)

Professional Development

15 Qs

Presentation, Analysis & Interpretation of Data

Presentation, Analysis & Interpretation of Data

University - Professional Development

15 Qs

Applied Networking

Applied Networking

Professional Development

10 Qs

TRY OUT PRODASAR

TRY OUT PRODASAR

Professional Development

15 Qs

Semiconductor Electronics : Class 3

Semiconductor Electronics : Class 3

Professional Development

12 Qs

Talk Series

Talk Series

Professional Development

10 Qs

Dietary requirements

Dietary requirements

Professional Development

10 Qs

Quiz Collections in Java

Quiz Collections in Java

Assessment

Quiz

Professional Development

Professional Development

Practice Problem

Easy

Created by

Surekha Rajeshwari

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

45 sec • 1 pt

Which of these packages contain all the collection classes?

java.lang
java.util
java.collections
java.net

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which one of these interfaces does not extends Collection Interface?

List
Set
Queue
Map

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which of the following Statements are true about List Interface?

1. List indexes start from 0

2. List allows you to have 'null' elements

3. List allows you to have duplicate elements

4. List follows insertion order

5. List uses Hashing Algorithm

1,2,3,4,5
1,2,3,4
2,3,4,5
1,3,4

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which collection allows you to retrieve elements in the order they were inserted?

1. ArrayList

2. HashSet

3. LinkedList

4. LinkedHashMap

5. LinkedHashSet

6. TreeSet

1,2,3,4,5,6
1,2,3,4,5
1,3,4,5
1,4,5

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Predict the output:

ArrayList<String> list = new ArrayList<>();

list.add("Java");

list.add("SQL");

System.out.println(list.remove(1));

Java
SQL
true
Compilation Error

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Identify the classes which are synchronized and thread safe.

1. ArrayList

2. Vector

3. Stack

4. PriorityQueue

1,2,3,4
2,3,4
2,3
1,2,3

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Which method removes all the elements from collection?

clear()
remove()
removeAll()
deleteAll()

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?

Discover more resources for Professional Development