
MCQs on Java Collections Framework
Quiz
•
Computers
•
University
•
Practice Problem
•
Medium
Manicka 2797
Used 1+ times
FREE Resource
Enhance your content in a minute
20 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the Java Collections Framework?
A set of algorithms for sorting and searching data
A collection of classes and interfaces for handling groups of objects
A framework for Java database management
A GUI toolkit for Java
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is not a part of the Java Collections Framework?
ArrayList
HashMap
StringBuffer
TreeSet
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default capacity of a Vector in Java?
5
10
15
20
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in the ArrayList class is used to retrieve an element at a specific index?
get()
fetch()
retrieve()
indexOf()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the key difference between ArrayList and Vector?
Vector is synchronized, whereas ArrayList is not
ArrayList is synchronized, whereas Vector is not
Vector does not allow duplicates, whereas ArrayList does
ArrayList can store only primitive data types
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which Java class implements the Stack data structure?
LinkedList
Stack
Queue
HashMap
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which interface is used to iterate over a collection in Java?
Enumeration
Iterable
Iterator
All of the above
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
Algo Quiz
Quiz
•
University
20 questions
UNIT IV Normalization
Quiz
•
University
18 questions
Quiz on Misinformation and Bias
Quiz
•
10th Grade - University
20 questions
DI (EM24) - Diseño de Contenidos (T8)
Quiz
•
University - Professi...
20 questions
The Internet
Quiz
•
University
18 questions
videojuegos generales
Quiz
•
University
20 questions
COA_QUIZ_UNIT I
Quiz
•
University
21 questions
CPA MS-Office Hotkeys Quiz
Quiz
•
8th Grade - Professio...
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
