
Java-Collections

Quiz
•
Computers
•
University
•
Hard
Subba Chavva
Used 3+ times
FREE Resource
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of the following is a part of the Java Collections Framework?
ArrayList
Array
int[]
String
2.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which collection does not allow duplicate elements?
List
Set
Map
All of the above
3.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which collection class is synchronized?
HashSet
TreeSet
Hashtable
HashMap
4.
MULTIPLE CHOICE QUESTION
20 sec • 1 pt
Which of these is not a method in the Collection interface?
add()
get()
remove()
size()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the output of the following code?
ArrayList<String> list = new ArrayList<>();
list.add("Java");
list.add("Python");
System.out.println(list.remove(0));
Java
Python
true
Compilation error
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is incorrect statement about the Hastable class?
Hashtable class implements Map interface.
Hashtable class extends the Dictionary class.
Hashtable class implements Cloneable interface.
Hashtable class extends Properties class.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which one is the correct way to iterate over elements in an ArrayList?
for (int i = 0; i < list.size(); i++)
for (int i : list)
for (Object obj : list)
for (Iterator it = list.iterator(); it.hasNext();)
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Cybersecurity Essentials Chapter 2 Review

Quiz
•
9th Grade - University
20 questions
Python Lists and Sets

Quiz
•
9th Grade - University
20 questions
Python Programming II CSE A

Quiz
•
12th Grade - University
17 questions
Arrays recap

Quiz
•
9th Grade - University
20 questions
Compiler Design

Quiz
•
University
15 questions
07 - Map

Quiz
•
University
20 questions
CSS Quiz

Quiz
•
University
20 questions
Cybersecurity Essentials Chapter 5 Review

Quiz
•
9th Grade - University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University