AP Computer Science A Final Review

AP Computer Science A Final Review

Assessment

Flashcard

Computers

10th Grade - University

Hard

VAR.2.A, VAR.1.C, CON.2.A.2

+5

Standards-aligned

Created by

Quizizz Content

FREE Resource

Student preview

quiz-placeholder

40 questions

Show all answers

1.

FLASHCARD QUESTION

Front

A Boolean expression...

Back

Checks if something is true or false

2.

FLASHCARD QUESTION

Front

How many values does a Boolean variable have?

Back

2

3.

FLASHCARD QUESTION

Front

Determine the truth value of the statement: ((a <= b) or (a == b)) and (b > a) where a = 5 and b = 6

Back

True

4.

FLASHCARD QUESTION

Front

Which Java type can be used to store a true or false value?

Back

boolean

5.

FLASHCARD QUESTION

Front

Evaluate (to true or false) each of the following expressions:
14 >= 14
15 > 15
16 != 16
18 >= 19

Back

T, F, F, F

6.

FLASHCARD QUESTION

Front

True/False: The body of an "if" statement will only be executed if the condition is true.

Back

True

7.

FLASHCARD QUESTION

Front

What is the value of num after this statement is executed?
int num = 23;
if(num>20) { num = 20; }
else { num = 30; }

Back

20

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?