Signed up recently but had issues with the confirmation email?

Click Forgot password and follow the reset steps. You can choose the same password you used when you signed up. This should then provide access.

Remember to check Spam and Junk. The email will be from auth@progressbytes.co.uk.

Revision notesQuestionsFor schools
Revise Computing
Log inStart revising free
Revision notesQuestionsFor schoolsLog in

© 2026 Revise Computing · revisecomputing.co.uk

Worried about something?Question Bank UpdatesPrivacy noticeTermsContact

Revise Computing is an independent revision resource. It is not affiliated with, or endorsed by, OCR (Oxford Cambridge and RSA Examinations).

Knowledge/A Level/H446/01 Computer systems/Data Types/Primitive data types

Primitive data types: integer, real/floating point, character, string and Boolean

Primitive data types, integer, real/floating point, character, string and Boolean

1.4.1 Data Types

Practise exam questions

Data Types — Note 1 of 10

Candidates need to have an understanding of programming data types such as integer, real, Boolean, character string etc. Candidates need to be able to choose appropriate data types for a situation or given data. Candidates should have experience of programming solutions using these data types. Candidates should have knowledge of how to convert from one data type to another.

What you need to know

A data type defines what kind of value a variable can hold and which operations can be carried out on it. You need to choose appropriate data types for given data and convert between them.

What to know

  • Choosing the right type ensures the correct operations are possible and memory is used efficiently.
  • The type of an EXPRESSION is the type of its result: a comparison such as total >= 100 gives a Boolean, and joining text such as firstName + " " + surname gives a String.
  • Casting converts between types, e.g. int("42"), str(3.5), float("2.1").
  • Data that looks numeric but is never used in calculations, such as phone numbers, should be stored as a string so leading zeros and symbols are kept.

Key terms

Integer

A whole number, positive or negative, e.g. 42, -7.

Real / floating point

A number with a fractional part, e.g. 3.14, -0.5.

Character

A single letter, digit or symbol, e.g. 'A', '7', '#'.

String

A sequence of characters, e.g. "Hello", "CB2 8EA".

Boolean

One of two values, True or False.

Exam technique

  • Tip:Justify your choice of data type in context, e.g. 'Real, because the price can contain pence'. Name the type exactly: 'number' is too vague. For money, Real is the expected answer (Currency or Decimal are also accepted).
  • Mistake:Choosing Boolean for data with more than two possible values.

Past exam questions

  • June 2022Paper 1Q2(a)(iii)1mark
  • June 2022Paper 1Q2(a)(iv)1mark
  • June 2019Paper 1Q8(b)1mark
  • June 2019Paper 1Q8(c)1mark
  • June 2019Paper 1Q8(d)1mark

Ready to test yourself?

Practise 1.4.1 questions
← Previous topicServer and client side processing1.3.4 Web TechnologiesNext note →Represent positive integers in binary1.4.1 Data Types

Back to Data Types

Data Types

Note 1 of 10

  1. 1Primitive data types: integer, real/floating point, character, string and Boolean
  2. 2Represent positive integers in binary
  3. 3Sign and magnitude and two's complement to represent negative numbers
  4. 4Addition and subtraction of binary integers
  5. 5Represent positive integers in hexadecimal
  6. 6Convert positive integers between binary, hexadecimal and denary
  7. 7Representation and normalisation of floating point numbers in binary
  8. 8Floating point arithmetic: addition and subtraction
  9. 9Bitwise manipulation and masks: shifts, combining with AND, OR and XOR
  10. 10How character sets (ASCII and UNICODE) are used to represent text
Topic overview