Operands, Operators, and Expressions: A Friendly Starter Quiz Quiz

  1. Identifying an operator

    In the expression 7 + 3, which term is the operator?

    1. +
    2. 7
    3. 3
    4. add
    5. ++
  2. What is an operand?

    Which statement best describes an operand in programming expressions?

    1. A value or variable that an operator acts on
    2. A symbol that performs an operation
    3. The final computed result of an expression
    4. A punctuation mark used to end a statement
    5. An operant
  3. Operator precedence example

    Given the expression x = 2 * 5 + 1, which part is evaluated first according to standard operator precedence rules?

    1. 2 * 5
    2. x = 2
    3. 5 + 1
    4. x = (2 * 5) + 1
    5. 2 * (5 + 1)
  4. Unary vs binary

    Which of the following is an example of a unary operator applied to a single operand?

    1. -n
    2. a - b
    3. x / y
    4. p + q + r
    5. n-
  5. Parentheses influence

    In the expression (2 + 3) * 4, which part is evaluated first and why?

    1. 2 + 3 because parentheses override normal precedence
    2. 3 * 4 because multiplication has the highest precedence
    3. 2 * 3 because expressions are read strictly left to right
    4. 2 + (3 * 4) because addition always happens before multiplication
    5. 2 + 3 * 4 because parentheses are optional