Skip to content
IGCSE Computer Science 0478 · Data representation · 13

0478.1.0.13 — Understand and use basic data types • Including: – integer – real – char – string – Boolean: past paper questions

66 real questionsasked in 7 of the last 10 exam series2019–2026usually: State, Explain, Identify, Write, Describe

Real questions on 0478.1.0.13 — understand and use basic data types • including: – integer – real – char – string – boolean

The newest 20 of 66 written questions. Open one to see it on the real paper.

  1. 0478/21 · May/June 2026 · Q3[3]

    Complete the table by writing the most appropriate data type for each variable described. variable description example data Age the age of the student 16 TelephoneNumber the telephone number of the student +44 7846398573 Teenager whether the student is a teenager or not TRUE data type

    See it on the paper →
  2. 0478/22 · May/June 2026 · Q2[1]

    Tick (3) one box to identify a programming data type used to store a single letter, symbol or number input from the keyboard. A Boolean B char C integer

    See it on the paper →
  3. 0478/23 · May/June 2026 · Q2[1]

    Tick (3) one box to identify a programming data type used to store any combination of letters and numbers. A char B Boolean C string

    See it on the paper →
  4. 0478/23 · May/June 2026 · Q6a[3]

    Complete the pseudocode algorithm to: • • calculate and output the length of the string stored in the variable Fact output, in upper case, the string stored in the variable Fact Fact "I learnt to program in computer science"

    See it on the paper →
  5. 0478/23 · May/June 2026 · Q6b[2]

    Write the pseudocode statements to use a string function to output the word program taken from the string stored in the variable Fact Do not declare any variables.

    See it on the paper →
  6. 0478/21 · October/November 2025 · Q7c[1]

    State a suitable data type for the variable Count

    See it on the paper →
  7. 0478/21 · October/November 2025 · Q8c[2]

    The database only uses these data types: • • • • • • text character Boolean integer real date/time. Field Complete the table to show the most appropriate data type for each field. Each data type must be different. Data type ParentName Permission DateReceived

    See it on the paper →
  8. 0478/21 · October/November 2025 · Q10a[1]

    Write pseudocode statements to declare the variables Seconds and Minutes

    See it on the paper →
  9. 0478/22 · October/November 2025 · Q4b[6]

    An email address can be validated by checking that it contains an @ symbol. Write the pseudocode for an algorithm that will allow an email address to be input and check whether or not it contains an @ symbol. Output a suitable message with the result. Use the string function SUBSTRING(EmailAddress, Start, 1) in your so...

    See it on the paper →
  10. 0478/23 · October/November 2025 · Q3[1]

    Tick (3) one box to identify the most appropriate data type to store 'M' A integer B char C real

    See it on the paper →
  11. 0478/23 · October/November 2025 · Q9a[3]

    Write pseudocode statements to declare the variables Name, Age and Found

    See it on the paper →
  12. 0478/21 · May/June 2025 · Q8a(i)[1]

    Identify one appropriate data type for the field Return

    See it on the paper →
  13. 0478/21 · May/June 2025 · Q8a(ii)[1]

    State the reason for the data type chosen.

    See it on the paper →
  14. 0478/21 · May/June 2025 · Q9a[2]

    Write pseudocode statements to declare the variables A and B

    See it on the paper →
  15. 0478/21 · May/June 2025 · Q9b[6]

    The function Odds(X) returns ‘Odd’ if the value of X is an odd number and returns ‘Even’ if the value of X is an even number. Write pseudocode statements to: • • define the function call the function using parameter A and store the return item in variable B Function definition Function call

    See it on the paper →
  16. 0478/21 · May/June 2024 · Q3[4]

    State what is meant by the data types integer and real. Give an example of each. Integer Example Real Example

    See it on the paper →
  17. 0478/23 · May/June 2024 · Q3[4]

    Describe the characteristics of the string and char data types and give an example of each. String Example Char Example

    See it on the paper →
  18. 0478/23 · May/June 2024 · Q5c[3]

    Explain why the identifiers L, S, T and A may not be appropriate to use as identifiers and how they could be improved.

    See it on the paper →
  19. 0478/23 · May/June 2024 · Q5d[2]

    State a more appropriate identifier for each of the variables L, S, T and A Original identifier Improved identifier L S T A

    See it on the paper →
  20. 0478/23 · May/June 2024 · Q6a[3]

    Give examples of normal, abnormal and extreme test data that could be used to make sure the program only accepts valid data. Normal test data Abnormal test data Extreme test data

    See it on the paper →

What examiners said

Most candidates correctly identified Boolean as the most appropriate data type for the field.

— Examiner report, May/June 2025, 0478/21 Q8(a)(i) (Cambridge)

Most candidates correctly identified that Boolean has only two states that make it appropriate.

— Examiner report, May/June 2025, 0478/21 Q8(a)(ii) (Cambridge)

Many candidates correctly gave the correct pseudocode for declaring variables. Some candidates incorrectly used text as a data type.

— Examiner report, May/June 2025, 0478/21 Q9(a) (Cambridge)

Past papers, syllabus and examiner reports © UCLES (Cambridge University Press & Assessment). Questions are matched to topics from the official syllabus. AssessPro is independent and not endorsed by Cambridge.

0478.1.0.13 — Understand and use basic data types • Including: – integer – real – char – string – Boolean — IGCSE Computer Science 0478 past paper questions | AssessPro