Search Header Logo

Java Arrays and Wrapper classes

Authored by Alexandria BrenonHodas

Computers

9th - 12th Grade

Used 2+ times

Java Arrays and Wrapper classes
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Java array indexes start at 1.

True

False

2.

FILL IN THE BLANK QUESTION

45 sec • 1 pt

Media Image

What is the value of nums[3]?

3.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Which is the correct way to declare an array of 10 integers? (select 2)

Media Image
Media Image
Media Image
Media Image

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the correct way to assign 4 to the 3rd position of the nums1 array?

nums1[2] = 3;

nums1[3] = 3;

nums1[3] = 4;

nums1[2] = 4;

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

What is the syntax for declaring an array in Java?

arrayName[type];

arrayName type[];

arrayName[] type;

type[] arrayName;

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you initialize an array in Java?

int[] arr = int[size];

int[] arr = new int[];

int[] arr = new int[size];

int arr = new int[size];

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

How do you change the value of the fifth element in an array named 'nums'?

nums[5] = newValue

nums[4] = newValue

nums(4) = newValue

nums.fifth = newValue

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?