Quiz Collections in Java

Quiz Collections in Java

Professional Development

10 Qs

quiz-placeholder

Similar activities

DSA Danh sách

DSA Danh sách

Professional Development

15 Qs

Java_4

Java_4

Professional Development

6 Qs

Java Core 2

Java Core 2

Professional Development

14 Qs

Java Collections Dr LJK

Java Collections Dr LJK

Professional Development

10 Qs

[FAST TRACK] Android Class Quiz week 05 12/05

[FAST TRACK] Android Class Quiz week 05 12/05

Professional Development

15 Qs

java AWT

java AWT

Professional Development

12 Qs

Programming Knowledge Quiz (Medium)

Programming Knowledge Quiz (Medium)

5th Grade - Professional Development

10 Qs

SAP TRIVIA-QUESTIONS D

SAP TRIVIA-QUESTIONS D

Professional Development

8 Qs

Quiz Collections in Java

Quiz Collections in Java

Assessment

Quiz

Professional Development

Professional Development

Easy

Created by

Surekha Rajeshwari

Used 2+ times

FREE Resource

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()

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?