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 stored | Variable identifier | Example data |
|---|---|---|
| The operator's ID | GrowerID | Grower_01 |
| The postcode where the greenhouse is located | GreenhousePostcode | SW1A 1AA |
| Whether the main water pump is currently on | PumpActive | False |
| The current measured internal temperature in Celsius | InternalTemp | 24.5 |
| The number of times the plants have been watered today | WaterCount | 3 |
| The single-character code representing the greenhouse zone | ZoneLetter | B |
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.
| Variable | Boolean | Char | String | Integer | Real |
|---|---|---|---|---|---|
| GreenhousePostcode | |||||
| PumpActive | |||||
| InternalTemp | |||||
| WaterCount |
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.