
CS2 Arrays Review

Quiz
•
Computers
•
9th - 12th Grade
•
Medium
Donna Panter
Used 1+ times
FREE Resource
19 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
out.println( array[0] );
5
7
11
syntax error
out of bounds exception
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
out.println( array[1] );
5
7
11
syntax error
out of bounds error
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
out.println( array[5/2] );
5
7
8
syntax error
out of bounds error
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
out.println(array[array.length-1]);
4
11
8
syntax error
out of bounds error
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
out.println(array[array.length]);
4
11
8
syntax error
out of bounds exception
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
out.println(array.length);
4
2
3
1
5
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is output by the code below?
int[] array = {5,7,8,11,4};
for(int i=0; i<array.length/2; i=i+2)
{
array[i]=array[array.length-i-1];
}
System.out.println(array[0]);
5
7
8
4
11
Create a free account and access millions of resources
Similar Resources on Wayground
14 questions
PBO KELAS 12

Quiz
•
12th Grade
14 questions
Exploring Computer Science

Quiz
•
10th - 12th Grade
19 questions
Unit 5 - Two-Dimensional Arrays

Quiz
•
9th - 12th Grade
15 questions
2D Arrays

Quiz
•
9th - 12th Grade
20 questions
UH INFORMATIKA KELAS XI BAB 2

Quiz
•
11th Grade
18 questions
Java Wiederholung

Quiz
•
12th Grade
19 questions
JavaScript Data Structures

Quiz
•
9th - 12th Grade
20 questions
CSA Unit 7 Test

Quiz
•
9th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

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

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
10 questions
1.2 OSI & TCP IP Models Quiz

Quiz
•
10th Grade
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
30 questions
Introduction to Computers

Quiz
•
8th - 9th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
20 questions
Hardware vs. Software Quiz

Quiz
•
7th - 10th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade