
Java-Collections
Authored by Subba Chavva
Computers
University
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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();)
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?
Similar Resources on Wayground
15 questions
Teknik dalam Pemikiran Komputasional
Quiz
•
University
20 questions
Spreadsheet Fundamentals - Quiz2
Quiz
•
University
15 questions
GK Quiz
Quiz
•
University
20 questions
Python Unit 1 Quiz
Quiz
•
University
15 questions
Javascript Array dan Object
Quiz
•
University
15 questions
GDSC Intro Quiz
Quiz
•
University
20 questions
2. Ayo Main Quiz Lagi
Quiz
•
University - Professi...
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade