
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
Video Games

Quiz
•
6th - 12th Grade
20 questions
Brand Labels

Quiz
•
5th - 12th Grade
15 questions
Core 4 of Customer Service - Student Edition

Quiz
•
6th - 8th Grade
15 questions
What is Bullying?- Bullying Lesson Series 6-12

Lesson
•
11th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
10 questions
Exploring Digital Citizenship Essentials

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

Interactive video
•
6th - 10th Grade
10 questions
Proper Keyboarding Techniques

Interactive video
•
6th - 10th Grade
14 questions
Inputs and Outputs: Computer Science Intro

Lesson
•
5th - 9th Grade
10 questions
Understanding Computers: Hardware, Software, and Operating Systems

Interactive video
•
7th - 12th Grade
29 questions
AP CSP Unit 2 Review (Code.org)

Quiz
•
10th - 12th Grade