In AP Computer Science Principles, an operator is a symbol or keyword (like +, -, *, /, or MOD) that performs an operation on values or variables inside an expression, which then evaluates to a single value (EK AAP-2.B.3, AAP-2.C.3).
An operator is the action part of an expression. The CED says an expression can consist of a value, a variable, an operator, or a procedure call that returns a value (EK AAP-2.B.3), and every expression evaluates down to a single value (EK AAP-2.B.4). The operator is what tells the computer what to do with those values. In score + 5, the + is the operator, and score and 5 are the operands it acts on.
AP CSP uses its own pseudocode, and the exam reference sheet gives you exactly five arithmetic operators: +, -, *, /, and MOD (EK AAP-2.C.3). MOD is the one that trips people up. a MOD b evaluates to the remainder when a is divided by b, so 17 MOD 5 evaluates to 2 (EK AAP-2.C.2). Operators don't run in left-to-right reading order either. Evaluation follows a set order of operations defined by the language (EK AAP-2.B.5), basically PEMDAS for code, with MOD sitting at the same level as multiplication and division.
Operators live in Unit 3: Algorithms and Programming, Topic 3.3 Mathematical Expressions, and they directly support learning objective AP Comp Sci P 3.3.C (evaluate expressions that use arithmetic operators) plus 3.3.B (represent step-by-step processes with sequential code statements). Here's the bigger picture. Almost every line of code on the AP exam contains at least one expression, and almost every expression contains an operator. If you can't trace what +, *, or MOD does to a value, you can't trace any code segment, which means operators are quietly tested in nearly every Unit 3 question even when the question isn't 'about' them. MOD in particular shows up constantly because it's the standard trick for checking even/odd numbers, wrapping around a range, or cycling through a list.
Operand (Unit 3)
Operators and operands are two halves of the same expression. The operand is the value being acted on, and the operator is the action. In 12 MOD 5, the operator is MOD and the operands are 12 and 5. Exam questions that ask you to 'identify the components of an expression' are testing whether you can tell these apart.
Arithmetic Operator (Unit 3)
Arithmetic operators are the specific family of operators AP CSP names on the reference sheet, which are +, -, *, /, and MOD (EK AAP-2.C.1). Think of 'operator' as the category and 'arithmetic operator' as the math-flavored members of it.
Logical Operator (Unit 3)
Operators aren't just for math. Logical operators like NOT, AND, and OR act on Boolean values instead of numbers, and they power the selection (if-statement) logic in Topic 3.5. Same idea, different data type. An arithmetic operator produces a number; a logical operator produces true or false.
Procedure calls in expressions (Unit 3)
EK AAP-2.B.3 lists procedure calls that return a value as expression components alongside operators. A line like result ← MAX(a, b) + MIN(c, d) * 2 mixes both. You evaluate the procedure calls first to get values, then apply the operators in order of operations. The multiplication happens before the addition.
Operators show up on the multiple-choice exam in two main ways. First, straight evaluation questions hand you an expression like (5 * 3) MOD 7 + 2 and ask for the result, which tests whether you know the order of operations (EK AAP-2.B.5) and what MOD actually returns. Second, code-tracing questions bury operators inside loops and assignments, so a single misread of / versus MOD cascades into the wrong answer. Two things to lock down before test day. One, a MOD b gives the remainder, so 17 MOD 5 is 2, not 3.4. Two, the AP pseudocode reference sheet only guarantees +, -, *, /, and MOD, so don't expect a ^ exponent operator. If a question involves powers, the code will build them with repeated multiplication or a procedure. Watch for expressions that mix operators with procedure calls like MAX(a, b) + MIN(c, d) * 2, where you resolve the calls first and then apply multiplication before addition.
The operator is the action; the operand is what gets acted on. In total / count, the / is the operator and total and count are the operands. A quick memory hook is that 'operand' ends like 'thousand', a quantity, while the operator is the worker doing something to those quantities. MCQs that ask you to label the parts of an expression are checking exactly this distinction.
An operator is a symbol or keyword that performs an operation on values or variables, and it's one of the four building blocks of an expression along with values, variables, and procedure calls (EK AAP-2.B.3).
The AP CSP exam reference sheet provides exactly five arithmetic operators: +, -, *, /, and MOD (EK AAP-2.C.3).
a MOD b evaluates to the remainder when a is divided by b, so 17 MOD 5 evaluates to 2, and MOD has the same precedence as multiplication and division.
Every expression evaluates to a single value, and the order of evaluation follows the language's order of operations, not left-to-right reading order (EK AAP-2.B.4 and 2.B.5).
AP pseudocode has no exponent operator, so raising to a power has to be done with repeated multiplication or a procedure call.
The operator is the action and the operand is the value being acted on; in x + 3, the operator is + and the operands are x and 3.
An operator is a symbol or keyword that performs an operation on values or variables inside an expression. In AP pseudocode, the arithmetic operators are +, -, *, /, and MOD, and they're all listed on the exam reference sheet (EK AAP-2.C.3).
The operator is the action and the operands are the values it acts on. In 12 MOD 5, MOD is the operator and 12 and 5 are the operands. The expression evaluates to 2, the remainder of 12 divided by 5.
No. The reference sheet only provides +, -, *, /, and MOD, so there's no built-in power operator like ^. Exam code that needs exponents builds them with repeated multiplication inside a loop or uses a procedure that returns a value.
MOD is the modulus operator, and a MOD b returns the remainder when a is divided by b. For example, 17 MOD 5 evaluates to 2. The CED assumes a is an integer greater than or equal to 0 and b is an integer greater than 0 (EK AAP-2.C.2).
Essentially yes. EK AAP-2.B.5 says expressions evaluate using a set order of operations, so multiplication, division, and MOD happen before addition and subtraction, and parentheses override everything. An expression like 2 + 3 * 4 evaluates to 14, not 20.