Skip to main content
O-LevelComputer ScienceProgramming2210/22 · May/June 2020 · Q25 Marks

Most programming languages include basic data types. Ahmad is describing the basic data types he has used. State the data type that Ahmad is describing in each sentence. Choose the data type from this list of programming terms. Array Boolean Char Constant Function Integer Iteration Procedure Real String Variable A number with a fractional part that can be positive or negative and used in calculations Data type A whole number that can be positive, negative or zero and used in calculations Data type A single number, symbol or letter Data type A sequence of characters Data type A data type with two values, True or False Data type

  1. (i)A number with a fractional part that can be positive or negative and used in calculations Data type[1]
  2. (ii)A whole number that can be positive, negative or zero and used in calculations Data type[1]
  3. (iii)A single number, symbol or letter Data type[1]
  4. (iv)A sequence of characters Data type[1]
  5. (v)A data type with two values, True or False Data type[1]

Mark scheme

Marking points from the official mark scheme (May/June 2020). The mark or mark type is shown in brackets.

  1. [1] Real
  2. [1] Integer
  3. [1] Char/String
  4. [1] String
  5. [1] Boolean

Write your answer and get it marked

On Oracle Prep you can write or photograph your own answer and have it marked by AI against this mark scheme, with feedback on what you missed.

Sign up free →

About this question

Topic
Programming, O-Level Computer Science (syllabus 2210). Structured question, 5 marks.
Source
O-Level Computer Science, May/June 2020 Paper 2 Variant 2, question 2.

Questions and mark schemes are from past examination papers and remain the copyright of the exam board. How Oracle Prep builds its content

Related Computer Science questions

© 2026 Oracle Prep