
apcsa-1D array
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
lin fu
Used 10+ times
FREE Resource
Enhance your content in a minute
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
Consider the following code segment. int[] arr = {1, 2, 3, 4, 5};
Which of the following code segments would correctly set the first two elements of array arr to 10 so that the new value of array arr will be {10, 10, 3, 4, 5} ?
arr[0] = 10;
arr[1] = 10;
arr[1] = 10;
arr[2] = 10;
arr[0, 1] = 10;
arr[1, 2] = 10;
arr = 10, 10, 3, 4, 5;
2.
MULTIPLE CHOICE QUESTION
2 mins • 1 pt
I only
II only
III only
I and II
I and III
3.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
{10, 20, 30, 70, 120}
{10, 20, 50, 90, 50}
{10, 20, 50, 90, 140}
{10, 30, 60, 100, 50}
{10, 30, 60, 100, 150}
4.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
2
1
0
-4
5.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
I only
II only
I and II
I and III
I and II and III
6.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
In the for loop header, the initial value of j should be 0.
In the for loop header, the initial value of j should be 2.
The for loop condition should be j < fibs.length - 1.
The for loop condition should be j < fibs.length + 1.
7.
MULTIPLE CHOICE QUESTION
3 mins • 1 pt
for (int y = 0; y <= arr.length; y++)
for (int y = 0; y < arr.length; y++)
for (int y = x; y < arr.length; y++)
for (int y = x + 1; y < arr.length; y++)
for (int y = x + 1; y <= arr.length; y++)
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
Imagen GIMP
Quiz
•
9th - 12th Grade
10 questions
Podstawy Pythona
Quiz
•
9th - 12th Grade
8 questions
ทบทวนการเขียนโปรแกรมแบบมีเงื่อนไขและการออกแบบหน้าโปรแกรมทำงาน
Quiz
•
11th Grade
10 questions
FUNDAMENTOS DE ESTADÍSTICA
Quiz
•
9th - 12th Grade
10 questions
TỪ BÀI TOÁN ĐẾN CHƯƠNG TRÌNH
Quiz
•
11th Grade
15 questions
Preguntas sobre Excel 2016
Quiz
•
6th Grade - University
15 questions
Ms. Exel dan Fungsi Logika IF
Quiz
•
10th Grade - University
15 questions
Bimestral 2P
Quiz
•
11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
