
Java Array

Quiz
•
Computers
•
12th Grade
•
Medium
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
Similar Resources on Wayground
40 questions
Python Data Types

Quiz
•
8th - 12th Grade
35 questions
SKT5 : Bab 3 : c) Standard Library, Subaturcara, Tatasusunan

Quiz
•
10th - 12th Grade
33 questions
CS 3 Midterm 2023

Quiz
•
12th Grade
34 questions
G10 CS UT Combined Revision

Quiz
•
12th Grade
35 questions
Teknik Informatika (kelas VII)

Quiz
•
7th Grade - University
35 questions
Attainment 4 - Classroom Activity (Grade 10)

Quiz
•
9th Grade - University
35 questions
Unity Kuis Tengah Semester 2035

Quiz
•
12th Grade
40 questions
PAS SISTEM KOMPUTER X

Quiz
•
1st Grade - University
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade