Boolean logic
17
0/3

An automated garden irrigation system turns on the sprinkler (SSS) if the soil is dry (DDD) or the temperature is high (HHH), and it is not currently raining (RRR).

The table identifies the three inputs:

InputDescription
DSoil is dry
HTemperature is high
RIt is currently raining

The logic system is represented by the expression:

S=(D OR H) AND NOT R S = (D \text{ OR } H) \text{ AND NOT } R S=(D OR H) AND NOT R

Complete the logic diagram below by identifying which logic gate (AND, OR, or NOT) belongs in each of the dashed boxes labeled Box 1, Box 2, and Box 3.

A logic diagram with three inputs on the left: D, H, and R. Inputs D and H connect to the inputs of a dashed rectangular box labeled Box 1. Input R connects to a dashed rectangular box labeled Box 2. The output of Box 1 and the output of Box 2 are connected to the inputs of a third dashed rectangular box labeled Box 3. The output of Box 3 is labeled S.

Specify the gate for each box:

  • Box 1
  • Box 2
  • Box 3
[3]

Boolean logic Questions

Practise OCR GCSE Computer Science Boolean logic with exam-style questions for GCSE Computer Science. 27 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 style. Every question includes a full worked solution and mark scheme, so you can see where marks are awarded rather than just whether you got the answer right.

PreviousNext

Boolean logic Questions

  1. GCSE
  2. /Computer Science
  3. /Boolean logic