Back to Unit

Unit 2: Selection and Iteration

AP Computer Science A — Note Packet

0 of 5 blanks filled

Key Terms

Boolean Expression

A programming statement that evaluates to either _______ or _______, like asking a yes-or-no question to your program.

Relational Operators

Operators used to compare values, including greater than, less than, and _______. Remember: _______ equals (==) is for comparison, not assignment.

Short-Circuit Evaluation

Java's optimization where with && operator, if the first condition is _______, Java skips checking the second condition because the result will be false anyway.

De Morgan's Laws

Logical rules stating that not (A and B) equals (not A) _______ (not B), and not (A or B) equals (not A) _______ (not B).

Epsilon Comparison

A technique for comparing floating-point numbers by checking if their _______ difference is less than a small tolerance value called _______.

Infinite Loop

A loop that never terminates because the loop _______ never becomes false, often caused by forgetting to update the _______ variable.

1 / 5