Java Array

Java Array

12th Grade

38 Qs

quiz-placeholder

Similar activities

SUMMATIVE TEST IN COMPUTER PROGRAMMING - 2nd Qtr-1-23-2023

SUMMATIVE TEST IN COMPUTER PROGRAMMING - 2nd Qtr-1-23-2023

12th Grade

40 Qs

T1 Diagnostic 01.09.2024

T1 Diagnostic 01.09.2024

12th Grade

40 Qs

Python Midterm Review

Python Midterm Review

9th - 12th Grade

41 Qs

AP CS A Midterm Review

AP CS A Midterm Review

9th - 12th Grade

37 Qs

APCSA Unit 6 Arrays

APCSA Unit 6 Arrays

9th - 12th Grade

34 Qs

AP CSAP Lists

AP CSAP Lists

9th - 12th Grade

34 Qs

Spring Final Review Part II

Spring Final Review Part II

9th - 12th Grade

35 Qs

Loops in Java

Loops in Java

10th - 12th Grade

41 Qs

Java Array

Java Array

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Samantha Hendrix

Used 3+ times

FREE Resource

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

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?