Java Arrays and Wrapper classes

Java Arrays and Wrapper classes

9th - 12th Grade

17 Qs

quiz-placeholder

Similar activities

Javascript Arrays

Javascript Arrays

9th - 12th Grade

12 Qs

Java - arrays and String methods

Java - arrays and String methods

9th - 12th Grade

12 Qs

Java Array Basics

Java Array Basics

11th Grade

22 Qs

Unit 6 Arrays

Unit 6 Arrays

10th - 12th Grade

14 Qs

APCSA Unit 6

APCSA Unit 6

10th - 12th Grade

14 Qs

APCSA Unit 6.2

APCSA Unit 6.2

10th - 12th Grade

14 Qs

AP Computer Science Principles Arrays

AP Computer Science Principles Arrays

10th - 12th Grade

14 Qs

AP CSA Unit 6 Arrays

AP CSA Unit 6 Arrays

10th - 12th Grade

14 Qs

Java Arrays and Wrapper classes

Java Arrays and Wrapper classes

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Alexandria BrenonHodas

Used 2+ times

FREE Resource

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

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?