Quiz Collections in Java

Quiz Collections in Java

Professional Development

10 Qs

quiz-placeholder

Similar activities

Java Collections Dr LJK

Java Collections Dr LJK

Professional Development

10 Qs

dataStructure

dataStructure

Professional Development

14 Qs

Assessment Tools for Observation / Outcome Request

Assessment Tools for Observation / Outcome Request

Professional Development

12 Qs

TalentNext Test Day-13-Core Java Topics

TalentNext Test Day-13-Core Java Topics

Professional Development

10 Qs

WCF Day-7 JDBC, Collection, List and Set

WCF Day-7 JDBC, Collection, List and Set

Professional Development

10 Qs

Java_4

Java_4

Professional Development

6 Qs

Python_DS2

Python_DS2

Professional Development

10 Qs

Emerging Tech

Emerging Tech

Professional Development

15 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?