Skip to content

Course home

Data types

Data types

Easy
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
Question 1
88%

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.

A

Boolean\text{Boolean}Boolean

B

Integer\text{Integer}Integer

C

String\text{String}String

D

Real\text{Real}Real

Markscheme

Data types Questions

  1. GCSE
  2. /Computer Science
  3. /Data types

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.

Question bank