AP Computer Science Unit 6 Arrays Pt. 3

AP Computer Science Unit 6 Arrays Pt. 3

10th - 12th Grade

5 Qs

quiz-placeholder

Similar activities

Arrays Unit 6 Computer Science

Arrays Unit 6 Computer Science

10th - 12th Grade

5 Qs

Unit 6 Comp Sci A Arrays

Unit 6 Comp Sci A Arrays

10th - 12th Grade

5 Qs

Break the fear

Break the fear

11th - 12th Grade

10 Qs

Unit 10 AP CSA

Unit 10 AP CSA

12th Grade

10 Qs

Code.org APCSA Unit

Code.org APCSA Unit

9th - 12th Grade

10 Qs

Unit 6 Arrays

Unit 6 Arrays

10th Grade

5 Qs

CS Arrays

CS Arrays

10th Grade

5 Qs

Unit 6 Comp Sci A Arrays

Unit 6 Comp Sci A Arrays

10th Grade

5 Qs

AP Computer Science Unit 6 Arrays Pt. 3

AP Computer Science Unit 6 Arrays Pt. 3

Assessment

Quiz

Computers

10th - 12th Grade

Medium

Created by

Herman Galioulline

Used 8+ times

FREE Resource

5 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

for (int x : numbers) {
System.out.println(numbers[x]);
}

for (int x : numbers) {
System.out.println(numbers);
}

for (int x : numbers) {
System.out.println(x);
}

for (numbers : int x) {
System.out.println(numbers[x]);
}

for (numbers : int x) {
System.out.println(x);
}

2.

MULTIPLE CHOICE QUESTION

2 mins • 1 pt

Media Image

Both code segment I and code segment II will print 45.

Both code segment I and code segment II will print 45678.

Code segment I will cause an ArrayIndexOutOfBoundsException and code segment II will print 45.

Code segment I will cause an ArrayIndexOutOfBoundsException and code segment II will print 45678.

Both code segment I and code segment II will cause an ArrayIndexOutOfBoundsException.

3.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

I only

II only

I and III only

II and III only

I, II, and III

4.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

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.

The for loop should increment j by 2 instead of by 1.

5.

MULTIPLE CHOICE QUESTION

3 mins • 1 pt

Media Image

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++)