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
Practise AQA GCSE Computer Science Data types with exam-style questions for GCSE Computer Science. 50 questions, matched to the AQA GCSE Computer Science (8525) specification and written in Paper 1 and Paper 2 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.