4.3.5

Boolean Logic

Test yourself

Defining Problems Using Boolean Logic

It is possible to describe the various outcomes of particular scenarios using boolean logic. The outcomes can then be interpreted using logic gates in an electronic circuit.

Illustrative background for Example 1Illustrative background for Example 1 ?? "content

Example 1

  • In order to pass an online course, students must achieve at least 75% in both assessments A and B.
Illustrative background for Booelan logicIllustrative background for Booelan logic ?? "content

Booelan logic

  • When approaching a problem like this, truth tables help to identify the possible outcomes.
  • Whether or not a student passed can be expressed as:
    • P=A.BP = A.B
Illustrative background for Example 2Illustrative background for Example 2 ?? "content

Example 2

  • A reef supplement should be added if the calcium level drops below 400 ppm or the magnesium drops below 1300 ppm, and the temperature of the water is 24°C.
Illustrative background for Booelan logicIllustrative background for Booelan logic ?? "content

Booelan logic

  • Whether or not the supplement is added can be expressed as:
    • D=(C+M).TD = (C + M).T

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