A1 Solutions - Boolean Logic
A1 Solutions - Boolean Logic
You have a digital light sensor and you name its reading light. This reading is true
when the light level exceeds a certain threshold and false otherwise.
The table below contains the different possible values for the light sensor reading. For
each of these values, fill in the table with the corresponding values for the logical
expression not light.
false true
true false
Task 2 .
The logical variable fruit is true when a diet includes fruit and false otherwise. The
logical variable veg is true when a diet includes vegetables and false otherwise.
fruit or veg
The table below contains different combinations of the possible values for fruit and
veg. For each of these combinations, fill in the table with the corresponding values for
the logical expression fruit or veg.
Task 3 .
You come across a strange machine. It has a red button, a green button, and a blue light.
You try pressing different combinations of the two buttons and make a table indicating
which combinations result in the blue light being turned on.
red button pressed red green button pressed green blue light is on
Write a logical expression that describes when the blue light is on. The expression should
involve the red and green logical variables and it should be true when the blue light is
on.
The logical expression is: red and green, because the light is on only when both the red and green
buttons are pressed.
Explorer task .
A digital sensor returns a reading that is either true or false.
You have a digital light sensor and you name its reading light. This reading is true
when the ambient light level exceeds a certain threshold and false otherwise.
You have a digital motion sensor and you name its reading motion. This reading is true
when motion is detected and false otherwise.
You want a security light to be turned on when motion is detected and there is no
ambient light.
Write a logical expression that involves the sensor readings light and motion and is
true when the security light should be turned on.
Resources are updated regularly — the latest version is available at: ncce.io/tcc.
This resource is licensed under the Open Government Licence, version 3. For more information on this
licence, see ncce.io/ogl.