Lesson 014
Basic Operations
Arithmetic · Assignment · Comparison
1:00The three families of operators every program needs — arithmetic to calculate, assignment to store, and comparison to ask true-or-false questions.
By the end, you can
- Identify the correct keyboard symbol for each arithmetic operation in code.
- Calculate a modulo result and use it to test whether a number is even or odd.
- Apply operator-precedence rules to evaluate an expression without parentheses.
- Predict whether an integer or float division produces a truncated or decimal result.
- Explain why floating-point numbers should not be compared with == and describe the correct alternative.
- Trace the read-evaluate-store sequence for an assignment like `x = x + 1`.
- Distinguish the assignment operator (=) from the equality comparison operator (==).
- State what type of value every comparison expression returns.
Up next in Programming Foundations




