❄⛄AP CSA - Unit 6 Review

❄⛄AP CSA - Unit 6 Review

Assessment

Flashcard

Computers

9th - 12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

10 questions

Show all answers

1.

FLASHCARD QUESTION

Front

Which of the following correctly defines and instantiates an array that can store 18 integers? A. int[] array;, B. int[] array = new int[18];, C. int[] array = new int[19];, D. int[18] array;, E. None of these

Back

int[] array = new int[18];

2.

FLASHCARD QUESTION

Front

What is the output of this code segment?
int[ ] array = {33 ,14 ,37 ,11 ,27 };
System.out.println(array[array.length]);

Back

index out of bounds exception

3.

FLASHCARD QUESTION

Front

What are the values in a after multAll(3) executes?

Back

{3, 9, -15, -6}

4.

FLASHCARD QUESTION

Front

What is the output of the following code?

Back

15

5.

FLASHCARD QUESTION

Front

What is the output?

Back

14

6.

FLASHCARD QUESTION

Front

What is output by the code at right?

Back

72

7.

FLASHCARD QUESTION

Front

What values are stored in arr after the following code segment has been executed? Options: A. 2 1 4 3 6 5 7 5, B. 1 3 2 5 4 7 6 8, C. 2 1 4 3 6 5 8 7, D. 1 3 2 5 4 7 6 6, E. 2 1 4 3 6 5 7 8

Back

1 3 2 5 4 7 6 6

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?