MCQs on Java Collections Framework

MCQs on Java Collections Framework

University

20 Qs

quiz-placeholder

Similar activities

PARC Linux Basic Part 2

PARC Linux Basic Part 2

University

20 Qs

SQL Quiz

SQL Quiz

University

18 Qs

BIM1014 Quiz 2

BIM1014 Quiz 2

KG - University

15 Qs

CORLANG Week6-7

CORLANG Week6-7

10th Grade - University

20 Qs

Chapter 8. Securing Network Media and Devices

Chapter 8. Securing Network Media and Devices

University

20 Qs

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

1ºDAM/DAW - Entornos de Desarrollo - UD1-6 - Prof. C. Boni

University - Professional Development

20 Qs

After Effect Intoduction

After Effect Intoduction

10th Grade - University

15 Qs

Memory-Mobo-Hard/Software

Memory-Mobo-Hard/Software

University

18 Qs

MCQs on Java Collections Framework

MCQs on Java Collections Framework

Assessment

Quiz

Computers

University

Practice Problem

Medium

Created by

Manicka 2797

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

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

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?

Discover more resources for Computers