AP CSA Unit 3 Review

AP CSA Unit 3 Review

Assessment

Flashcard

Computers

12th Grade

Hard

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

17 questions

Show all answers

1.

FLASHCARD QUESTION

Front

What does short circuit evaluation mean in the following code? if (a < b && c != d)

Back

if a < b is false it doesn't evaluate c != d

2.

FLASHCARD QUESTION

Front

The boolean expression (A || B) && A is true whenever?

Back

A is true

3.

FLASHCARD QUESTION

Front

The boolean expression (A && B) && B is true whenever...

Back

both A is true and B is true

4.

FLASHCARD QUESTION

Front

For what values of n with this code segment generate output? Options: for all values of n, for all even values of n, for all values of n that are multiples of 3, for all values of n that are multiples of 6, for all values of n that are either a multiple of 2 or a multiple of 3.

Back

for all values of n that are multiples of 6

5.

FLASHCARD QUESTION

Front

Which java statement correctly implements the following pseudocode: display "A" when the student's grade is higher than 90 (inclusive)

Back

if (studentGrade >= 90)

6.

FLASHCARD QUESTION

Front

Consider the following code, assuming grade is an int: Which of the following will always produce the same result as the code above, regardless of the value of grade?

Back

Media Image

7.

FLASHCARD QUESTION

Front

What is output by the following code? Options: 11, 31, 15, error

Back

11

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?