Skip to content

Course home

Data types

Data types

Easy
1234567891011121314151617181920212223242526
Question 1
86%

A laboratory technician uses an automated digital scale to record the precise mass of chemical reagents in grams, where measurements typically contain decimal parts (e.g. 1.425 g).

Which data type is the most appropriate to store these measurements, and why?

A

Real, because mass measurements are continuous quantities that require the representation of fractional (decimal) parts.

B

Integer, because digital scales have finite precision, meaning the readings are stored as discrete whole numbers.

C

String, because text characters are needed to preserve the decimal point and maintain exact formatting.

D

Boolean, because the system only needs to record whether a reagent is present or absent on the scale.

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