MCQs on Java Collections Framework

MCQs on Java Collections Framework

University

20 Qs

quiz-placeholder

Similar activities

QUIZ BAB 4: SISTEM OPERASI

QUIZ BAB 4: SISTEM OPERASI

8th Grade - University

20 Qs

Round 1 ( RHA Learner Contest )

Round 1 ( RHA Learner Contest )

University

20 Qs

1.1.1 The structure and function of the processor

1.1.1 The structure and function of the processor

11th Grade - University

15 Qs

Python MCQ

Python MCQ

University

20 Qs

Network topologies

Network topologies

8th Grade - University

20 Qs

Software Engineering Quiz 1

Software Engineering Quiz 1

University

20 Qs

Arduino Loop

Arduino Loop

2nd Grade - University

20 Qs

Python List

Python List

4th Grade - University

15 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