119.ArrayList

119.ArrayList

Professional Development

20 Qs

quiz-placeholder

Similar activities

JSON

JSON

Professional Development

23 Qs

Fundamentos JS -  Métodos de arrays y buenas practicas

Fundamentos JS - Métodos de arrays y buenas practicas

Professional Development

15 Qs

Python Skills

Python Skills

1st Grade - Professional Development

15 Qs

JavaScript

JavaScript

Professional Development

15 Qs

C Programming Intro

C Programming Intro

Professional Development

24 Qs

Javascript - 02

Javascript - 02

Professional Development

20 Qs

Powerwoche JS II

Powerwoche JS II

Professional Development

15 Qs

Arrays & Strings using C

Arrays & Strings using C

Professional Development

15 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?