MCQs on Java Collections Framework

MCQs on Java Collections Framework

University

20 Qs

quiz-placeholder

Similar activities

Hash

Hash

University

20 Qs

collections

collections

University

20 Qs

Fundamentals of data Structures & Linked list

Fundamentals of data Structures & Linked list

University

20 Qs

C++Arrays Loops and Functions Review

C++Arrays Loops and Functions Review

University

15 Qs

DATSRUC Week 6

DATSRUC Week 6

10th Grade - University

15 Qs

ICT 1 (H1H2)

ICT 1 (H1H2)

University

25 Qs

Collections C#

Collections C#

University

20 Qs

Python Workshop Day - 2

Python Workshop Day - 2

University

15 Qs

MCQs on Java Collections Framework

MCQs on Java Collections Framework

Assessment

Quiz

Computers

University

Medium

Created by

Manicka 2797

Used 1+ times

FREE Resource

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

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?