relational operators

Cards (13)

  • Operation
    A symbol that performs a calculation or logical test on its operands, it can be arithmetic, relational or boolean
  • Operand
    The values that an operation applies to, e.g. in age > 18, both age and 18 are operands
  • >
    The relational operator greater than
  • Relational operator
    Any operator that compares its operands including =, ≠, >, <, ≥, and ≤
  • The relational operator greater than or equal to, sometimes written >=
  • <
    The relational operator less than
  • The relational operator less than or equal to, sometimes written <=
  • The relational operator not equal to, sometimes written <> or !=
  • =
    The comparison operator equal to, sometimes written ==
  • True
    The result of this expression:5 < (2 * 3)
  • False
    The result of this expression:(12 / 2) ≠ 6
  • yes
    The output from this pseudo-code:a = 7IF a ≥ 7 THEN OUTPUT 'yes'ELSE OUTPUT 'no'ENDIF
  • no
    The output from this pseudo-code:a = 7IF a ≠ 7 THEN OUTPUT 'yes'ELSE OUTPUT 'no'ENDIF