Search Header Logo

Java Array

Authored by Samantha Hendrix

Computers

12th Grade

Used 3+ times

Java Array
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

38 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {33,14,37,11,27}; out.println(array[0]);

27

11

33

There is no output due to a syntax error.

There is no output due to a runtime exception.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {33,14,37,11,27}; out.println(array[array.length-1]);

27

11

33

There is no output due to a syntax error.

There is no output due to a runtime exception.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {33,14,37,11,27}; out.println(array[array.length]);

14

11

33

There is no output due to a runtime exception.

There is no output due to a syntax error.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {33,14,37,11,27,4,6,2,6}; out.println(array.length);

10

9

11

5

8

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {7,8,10,11,4,3}; array[array[0]/2]=15; array[array[4]+1]=9; array[array.length/2-1]=5; array[1]=array[0]+4; out.println(array[2]);

7

11

5

15

9

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {7,8,10,11,4,3}; array[array[0]/2]=15; array[array[4]+1]=9; array[array.length/2-1]=5; array[1]=array[0]+4; out.println(array[0]);

7

11

5

15

9

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is output by the code below? int[] array = {7,8,10,11,4,3}; array[array[0]/2]=15; array[array[4]+1]=9; array[array.length/2-1]=5; array[1]=array[0]+4; out.println(array[5]);

7

11

5

15

9

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?