Question 5
OCR Computer Science June 2024 Computer systems (H446-01)A level8 marks
On the specification
- (a)
- 1.4 Data types, data structures and algorithms
- (b)(i)
- 1.4 Data types, data structures and algorithms
- (b)(ii)
- 1.4 Data types, data structures and algorithms
- (b)(iii)
- 1.4 Data types, data structures and algorithms
Question text
5 Ben installs burglar alarms. The alarm is made up of a door sensor and a motion sensor. When the alarm is set, the siren will sound if either the door sensor or the motion sensor detect movement. The alarm also has a test mode setting. When the test mode setting is enabled, an engineer can check the sensors are working without the siren going off. (a) The inputs to the alarm are as follows. Input System A Door sensor B Motion sensor C Alarm has been set D Test mode enabled Draw a logic circuit to show the logic that is used in the burglar alarm to determine if the siren goes off. [4] (b) (i) Simplify the Boolean expression ¬A v ¬B using De Morgan’s First Law. [1] (ii) Simplify the Boolean expression ¬(¬B) using double negation. [1] (iii) Simplify the Boolean expression (A v B) ˄ (A v C) using distribution. [2]