Quiz Collections in Java

Quiz Collections in Java

Professional Development

10 Qs

quiz-placeholder

Similar activities

PractiseQuiz2May2021

PractiseQuiz2May2021

Professional Development

15 Qs

Collections

Collections

Professional Development

5 Qs

Quiz Feria Orientacion Profesional

Quiz Feria Orientacion Profesional

Professional Development

15 Qs

Social Media Marketing

Social Media Marketing

Professional Development

10 Qs

Acosta Crew Quiz 1.

Acosta Crew Quiz 1.

Professional Development

10 Qs

Data Structure

Data Structure

Professional Development

13 Qs

SCS-Day 2019 Quiz Contest

SCS-Day 2019 Quiz Contest

Professional Development

15 Qs

IT_SUBBOTNIK_2

IT_SUBBOTNIK_2

University - Professional Development

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