An automated climate control system uses codes to identify different heating zones in a smart building. The code for each zone type is shown in the table:
| Zone Code | Zone Name |
|---|---|
| HW | Hallway |
| KT | Kitchen |
| BD | Bedroom |
A program is written to process temperature adjustments. The program:
IsActiveZone() to check whether the entered zone is currently active and configurable01 zoneCode = input("Enter the heating zone code")
02 if IsActiveZone(zoneCode) then
03 targetTemp = input("Enter the target temperature in Celsius")
04 print("Setting zone " + zoneCode + " to " + targetTemp + " degrees.")
05 endif
Identify the data type of the value returned by the function IsActiveZone().
26 exam-style questions on OCR GCSE Computer Science Data types. Each one has a worked solution and a mark scheme showing where the marks go.