119.ArrayList

119.ArrayList

Professional Development

20 Qs

quiz-placeholder

Similar activities

Java Quiz on Module 1 & 2

Java Quiz on Module 1 & 2

Professional Development

21 Qs

Datatypes and Flowcontrol

Datatypes and Flowcontrol

Professional Development

15 Qs

Escalada da Lógica de Programação com JavaScript

Escalada da Lógica de Programação com JavaScript

Professional Development

20 Qs

Day 3 - Dom Manipulation

Day 3 - Dom Manipulation

Professional Development

20 Qs

Advanced JavaScript

Advanced JavaScript

Professional Development

20 Qs

JMS Fundamentals: Core Java

JMS Fundamentals: Core Java

Professional Development

15 Qs

Java Chapter 7 Review Questions

Java Chapter 7 Review Questions

Professional Development

23 Qs

Java Basics

Java Basics

Professional Development

17 Qs

119.ArrayList

119.ArrayList

Assessment

Quiz

Computers

Professional Development

Hard

Created by

ANIL KUMAR

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is an ArrayList in Java?
A type of linked list
A resizable array
A fixed-size array
A mapping data structure

2.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What are ArrayList and Vector in Java?
Two types of maps
Two types of sets
Two types of lists
Two types of queues

3.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can you create a 2D ArrayList in Java?
ArrayList<ArrayList>
2DArrayList
new ArrayList[2][2]
ArrayList[2][2]

4.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

When should you use an ArrayList in Java?
When memory is limited
When a fixed size is needed
When elements need to be sorted
When elements need to be dynamically added or removed

5.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the difference between ArrayList and arrays in Java?
ArrayList is faster than arrays
Arrays can store different data types
Arrays are resizable, while ArrayList is not
ArrayList provides dynamic resizing, while arrays have fixed sizes

6.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

How can you determine the size of an ArrayList in Java?
Use length() method
Use size() method
Use getSize() method
Use count() method

7.

MULTIPLE CHOICE QUESTION

20 sec • 1 pt

What is the purpose of the Vector class in Java?
To create dynamic arrays
To provide synchronization
To store key-value pairs
To perform mathematical operations

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?