Worksheet Questions
Worksheet Questions
Materials from the Teach Computing Curriculum created by the National Centre for Computing Education
1
Task 1 - Boolean logic - part 1
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 on the next slide 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.
Task 1 - Boolean logic - part 1
false
true
Task 1 - Boolean logic - part 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.
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 1 - Boolean logic - part 2
false false
True true
true false
false true
Task 1 - Boolean logic - part 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.
Task 1 - Boolean logic - part 3
Task 1 - Boolean logic - part 3
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.
Task 2 - Logic circuits - part 1
For the tasks below, you will need to open a browser window and visit:
oaknat.uk/comp-simulator
Task 2 - Logic circuits - part 1
You can flip an input from false (0) to true (1) and vice versa by
clicking on the input box.
Verify that the output is true (1) and the light is turned on only
when both of the inputs are true (1). The table on the next slide
contains all the input combinations that you should try.
Task 2 - Logic circuits - part 1
jjb
Task 2 - Logic circuits - part 2
You can flip an input from false (0) to true (1) and vice versa by clicking on the input
box.
Task 2 - Logic circuits - part 2
Try all the input combinations in the table below and fill in the table
with the corresponding output.
Task 2 - Logic circuits - part 2
You can flip an input from false (0) to true (1) and vice versa by clicking on the input
box.
Task 2 - Logic circuits - part 2
Before, we described how the result of the OR operator is true if at least one of its inputs
is true. How would you describe the result of the XOR logic operator with words?
Task 2 - Logic circuits - part 3
You can use logical reasoning to deduce what this combination will be, or you can create
the circuit and try out the different combinations of input values. Write your answer in the
table below, and provide a brief explanation for your answer.