Data types
18
0/4

EcoGrow Systems is a company that installs automated climate control systems in industrial greenhouses. The systems use a computer that is connected to various environmental sensors and actuators. The following data is stored in the system:

Data storedVariable identifierExample data
The operator's IDGrowerIDGrower_01
The postcode where the greenhouse is locatedGreenhousePostcodeSW1A 1AA
Whether the main water pump is currently onPumpActiveFalse
The current measured internal temperature in CelsiusInternalTemp24.5
The number of times the plants have been watered todayWaterCount3
The single-character code representing the greenhouse zoneZoneLetterB

Below is a table showing some variables within the program.

Identify the most appropriate data type for each variable by selecting one option in each row.

VariableBooleanCharStringIntegerReal
GreenhousePostcode
PumpActive
InternalTemp
WaterCount
[4]

Data types Questions

Practise OCR GCSE Computer Science Data types with exam-style questions for GCSE Computer Science. 26 questions, matched to the OCR GCSE Computer Science (J277) specification and written in Component 01 and Component 02 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.

PreviousNext

Data types Questions

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