
Java Collections
Quiz
•
Computers
•
Professional Development
•
Practice Problem
•
Medium
Easwari Theetharappan
Used 4+ times
FREE Resource
Enhance your content in a minute
15 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct difference between ArrayList and Vector?
ArrayList increases its size by doubling the array size while Vector increases by 50% of the array size.
ArrayList is synchronized while Vector is not.
ArrayList is not a legacy class while Vector is the legacy.
None
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When would you choose to use ArrayList over LinkedList in an application?
ArrayList is preferred when there is more demand for get via index operations.
ArrayList is preferred when there is growing need of merging or sorting operations.
ArrayList is preferred when there are frequent insertions or deletions required in the application.
None
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct method to convert the array of strings into a list?
Arrays class toList() method
Arrays class asList() method
Arrays class doList() method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is a correct difference between List and Set?
List maintains no order whereas Set maintains ascending order.
List contain only unique elements whereas Set can contain duplicate elements.
List can hold duplicate elements while Set includes only unique elements.
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct difference between HashMap and TreeMap?
HashMap maintains no order but TreeMap maintains ascending order.
HashMap contains only values whereas TreeMap contains key and values both.
HashMap can contain duplicate elements whereas TreeMap contains only unique elements.
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following method you need to override for using an object as key in a HashMap?
hashValue()
hashCode()
hashKey()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When would you choose to use LinkedList over ArrayList in an application?
LinkedList is preferred when application requires to perform merging or sorting operations.
LinkedList is preferred when applications needs to support insertions or deletions of elements.
LinkedList is preferred when application requires to perform frequent get or search operations.
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
16 questions
VR and AR Tutorial 1
Quiz
•
Professional Development
20 questions
JavaScript
Quiz
•
Professional Development
20 questions
Web Application Security Testing-PreTest
Quiz
•
Professional Development
10 questions
Daily Quiz (24.12.20)
Quiz
•
7th Grade - Professio...
10 questions
Introduction to AI - Healthcare & Business
Quiz
•
University - Professi...
15 questions
SEC+ Ch.6 Review Test
Quiz
•
Professional Development
10 questions
PDS - 04225 Pointers & Dynamic Arrays - Chapter 8
Quiz
•
University - Professi...
10 questions
Networking Basics
Quiz
•
Professional Development
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
Discover more resources for Computers
10 questions
How to Email your Teacher
Quiz
•
Professional Development
6 questions
3RD GRADE DECLARATION OF INDEPENDENCE EXIT TICKET
Quiz
•
Professional Development
19 questions
Black History Month Trivia
Quiz
•
6th Grade - Professio...
22 questions
Multiplying Exponents with the Same Base
Quiz
•
9th Grade - Professio...
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
