Question Constellation Sign up for free

AQA · GCSE · Computer Science · Higher

Choosing a data type for year

Q01.3 1 mark
Figure 1
film ← "Godzilla vs. Kong"
year ← 2021
OUTPUT "Please guess a letter"
letter ← USERINPUT

Which of the following would be the most suitable data type for the variable year? Shade one lozenge.

Write your answer first. You can study the marking guidance whenever you need it.

Study the marking See what earns credit and compare it with a full-mark answer.

Marking points

  1. 1 Selects integer as the suitable data type for year.