Skip to content

Course home

Data types

Data types

Easy
1234567891011121314151617181920212223242526
Question 18

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]
Markscheme

Data types Questions

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

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.

Question bank