An aerospace software engineer is writing a control script for an autonomous cargo glider. The script already uses the String data type to store the glider’s destination airport code, and the Boolean data type to record whether the cargo compartment is locked.
State one other common data type that could be used to store the precise mass of the cargo in tonnes (which can include fractional values).
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.