Boolean Operators

Computer Science: Cambridge International GCSE, topic 2.4.5

Boolean Operators

Boolean operators perform logical operations on boolean variables and always return another boolean variable.

AND

AND

  • AND evaluates to True (1) if and only if both operands are True (1).
  • '.' is the symbol for the AND operator.
OR

OR

  • OR evaluates to True (1) if any of the two operands are True (1).
  • '+' is the symbol for the OR operator.
NOT (negation)

NOT (negation)

  • NOT negates a logical value.
  • The symbol for the NOT operator is a line above the variable.
  • For example, NOT AA is written as A‾\overline{A}.

Test yourself on Boolean Operators

  • Which Boolean operator takes only one value as input?

  • What does the operation 0 AND 0 evaluate to?

Practise this topic for free