Introduction to Boolean Logic

Introduction

What is Boolean Logic?

  • Invented by Samuel Boole in 1847
  • A form of Algebra where all variables have values or true or false

Why is Boolean logic used in computers?

All data stored in a computer system is stored and transmitted  in binary format( ones and zeros) so any calculations, evaluations or comparisons must also be broken down to the point where can be executed in pure binary using boolean logic.

 

Example 1 – compare 2 numbers to see which is higher

 

Example 2 – add two numbers together

 

Resources

Resources

 

Practical Activity – and or not game

The teacher plays a game where they ask get the class to stand up / sit down based on some true/false logic (or one step forward / backward) towards the door if used as a plenary.

You can that advance this on towards getting the pupils to say true / false