Note AcademyNote Academy

Computer Science · May / June 2021 · Paper 21 · Question 3

0478

As printed in the paper

The question as text

Name and describe the most appropriate programming data type for each of the examples of data given. Each data type must be different. Data: 37 Data type name Data type description Data: Cambridge2021 Data type name Data type description Data: 47.86 Data type name Data type description [6]

Read automatically from the paper; the printed page above is exact.

Show the answer and mark scheme

One mark per bullet point

37

Data type name

Integer

Data type description

(Any) whole number

Cambridge2021

Data type name

String

Data type description

A group of characters/text

47.86

Data type name

Real

Data type description

(Any real) number that could be a whole number or a fraction

Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.