An algorithm is used to control an automated greenhouse climate system:
1 ambient_temp ← USERINPUT
2 IF ambient_temp < 15.0 THEN
3 heater_on ← TRUE
4 target_power ← 250
5 ELSE IF ambient_temp >= 25.0 THEN
6 heater_on ← FALSE
7 target_power ← 0
8 ELSE
9 heater_on ← TRUE
10 target_power ← 100
11 ENDIF
Choose one option which shows the data type of the variable heater_on in this algorithm.
Boolean\text{Boolean}Boolean
Integer\text{Integer}Integer
String\text{String}String
Real\text{Real}Real
50 exam-style questions on AQA GCSE Computer Science Data types. Each one has a worked solution and a mark scheme showing where the marks go.