
apcsa-1D array

Quiz
•
Computers
•
11th Grade
•
Hard

lin fu
Used 9+ times
FREE Resource
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++)
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
5 задание ЕГЭ

Quiz
•
11th Grade
15 questions
Matrici A

Quiz
•
11th Grade
11 questions
Java Arrays

Quiz
•
10th - 12th Grade
15 questions
C# Structured, Selection and Iteration

Quiz
•
9th Grade - University
14 questions
AP CSA Review

Quiz
•
11th Grade
12 questions
C# Arrays

Quiz
•
9th - 12th Grade
6 questions
Topic 4.3 Video 1

Quiz
•
11th Grade
14 questions
APCSA Unit 6 Review Arrays

Quiz
•
10th - 12th 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