
Quiz Collections in Java
Authored by Surekha Rajeshwari
Professional Development
Professional Development
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which of these packages contain all the collection classes?
2.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which one of these interfaces does not extends Collection Interface?
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
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
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));
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
7.
MULTIPLE CHOICE QUESTION
45 sec • 1 pt
Which method removes all the elements from collection?
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?