
CS2 Arrays Review
Authored by Donna Panter
Computers
9th - 12th Grade
Used 1+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
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
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
SOAL AIJ
Quiz
•
11th Grade
20 questions
Pemetaan alamat melalui subneting
Quiz
•
10th Grade
15 questions
Bài 22-Kiểu dữ liệu danh sách
Quiz
•
10th Grade
20 questions
Administrasi Sistem jaringan KD1
Quiz
•
1st - 10th Grade
15 questions
Dasar Kompetensi Keahlian IPv6
Quiz
•
10th Grade
15 questions
Introducción Redes Tele1 IB
Quiz
•
10th Grade - University
20 questions
SOFTWARE 7I
Quiz
•
7th Grade - University
20 questions
Operator Aritmetika dan Perbandingan
Quiz
•
10th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
10 questions
Probability Practice
Quiz
•
4th Grade
15 questions
Probability on Number LIne
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
6 questions
Appropriate Chromebook Usage
Lesson
•
7th Grade
10 questions
Greek Bases tele and phon
Quiz
•
6th - 8th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
14 questions
[AP CSP] JavaScript Programming Quiz
Quiz
•
9th - 12th Grade
10 questions
Understanding Computers and Computer Engineering
Interactive video
•
7th - 12th Grade
37 questions
Python - Tuples, Lists, and List Methods
Quiz
•
9th - 12th Grade
60 questions
MOS Word Home, Insert, Reference Ribbon Basics
Quiz
•
9th Grade