AP CSA Unit 3 Review

AP CSA Unit 3 Review

Assessment

Flashcard

Computers

12th Grade

Practice Problem

Hard

Created by

Wayground 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.

Media Image

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?

Media Image

Back

Media Image

7.

FLASHCARD QUESTION

Front

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

Media Image

Back

11

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?