Java Arrays and ArrayLists

Java Arrays and ArrayLists

Assessment

Flashcard

Computers

University

Hard

Created by

Yuba Siwakoti

FREE Resource

Student preview

quiz-placeholder

15 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Java does not limit the number of dimensions an array may have.

Back

True

2.

FLASHCARD QUESTION

Front

Java performs array bounds checking to prevent using a subscript outside the valid range.

Back

This feature helps avoid runtime errors and ensures safe access to array elements.

3.

FLASHCARD QUESTION

Front

In Java, you do not use the new operator when you use an initialization list.

Back

Initialization lists provide a concise way to create and initialize arrays.

4.

FLASHCARD QUESTION

Front

A partially filled array requires an integer to track the number of stored items.

Back

This helps in managing the array's capacity effectively.

5.

FLASHCARD QUESTION

Front

The correct method header for receiving a two-dimensional array as an argument is public static void passMyArray(int[][]).

Back

Use int[][] for two-dimensional array method headers.

6.

FLASHCARD QUESTION

Front

Sequential search starts with the first element of the array.

Back

Begins at the first element.

7.

FLASHCARD QUESTION

Front

String arrays in memory are arrays of references.

Back

References to String objects form String arrays.

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?