2.4.3

Boolean Operators

Test yourself

Boolean Operators

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

Illustrative background for ANDIllustrative background for AND ?? "content

AND

  • AND evaluates to True (1) if and only if both operands are True (1).
  • '.' is the symbol for the AND operator.
Illustrative background for ORIllustrative background for OR ?? "content

OR

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

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}.

Jump to other topics

1Computer Systems

1.1Systems Architecture

1.2Memory & Storage

1.3Computer Networks, Connections & Protocols

1.4Network Security

1.5Systems Software

1.6Ethical, Legal, Cultural & Environmental Concern

2Computational Thinking, Algorithms and Programming

Go student ad image

Unlock your full potential with GoStudent tutoring

  • Affordable 1:1 tutoring from the comfort of your home

  • Tutors are matched to your specific learning needs

  • 30+ school subjects covered

Book a free trial lesson