4.3.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}.
Illustrative background for XORIllustrative background for XOR ?? "content

XOR

  • XOR means 'exclusive OR'.
  • The symbol for the XOR operator is \bigoplus.
Illustrative background for NANDIllustrative background for NAND ?? "content

NAND

  • NAND means NOT AND.
  • AA NAND BB is written as A.B\overline{A.B}.
Illustrative background for NORIllustrative background for NOR ?? "content

NOR

  • NOR means NOT OR.
  • AA NOR BB is written as A+B\overline{A+B}.

Jump to other topics

1Components of a Computer

2Software & Software Development

3Exchanging Data

4Data Types, Data Structures & Algorithms

5Legal, Moral, Cultural & Ethical Issues

6Elements of Computational Thinking

6.1Thinking Abstractly

6.2Thinking Ahead

6.3Thinking Procedurally

6.4Thinking Logically

6.5Thinking Concurrently

7Problem Solving & Programming

8Algorithms

Unlock your full potential with Seneca Premium

  • Unlimited access to 10,000+ open-ended exam questions

  • Mini-mock exams based on your study history

  • Unlock 800+ premium courses & e-books

Get started with Seneca Premium