Past-paper question · 2014 May-June · Paper 23 · Q1(a)(i)

Question 1(a)(i) 2014 · May-June · Paper 23 · 2 marks

Original past-paper question for 1(A)(I)
Original past-paper question for 1(A)(I)
Reveal official mark-scheme answer Official mark-scheme answer for 1(A)(I)

Official answer for Question 1

Part (a)

(i)

Part (a)

(i)

✓
Identifier
✓
Data type
✓
Description
✓
Ounces
✓
INTEGER
✓
Variable used as control
✓
variable in FOR loop
✓
Grams
✓
REAL/Float/single/decimal/double Variable used for storing result
✓
of conversion calculation
✓
1 mark for each data type
[2]

Mark scheme 9691_s14_ms_23.pdf →

Show text version of question

Question 1

Part (a)

(i)

Sheena has inherited a recipe book from her grandmother. All the recipes give ingredient measurements in ounces. Sheena wants to write a program to produce a conversion table that helps her use the correct weight in grams.

To convert ounces into grams: 1 ounce is 28.35 grams.

The conversion table will show the number of grams to the nearest whole number:

Conversion Table

Ounces Grams

1 28

2 57

: : : :

16 454

(i)

Sheena writes pseudocode that uses the variables in the table below. Complete the

identifier table.

Identifier Data type Description

Variable used as control Ounces variable in FOR loop Grams Variable used for storing result of conversion calculation

[2]
Topic relevance

Why this question appears here

71% assigned-topic match · Data types and structures › Data types and records

Topic-match percentages estimate how closely each question fits the selected syllabus topic. They are a guide for choosing stricter or broader practice.

Permanent source page: Educate A Change · From 9691_s14_qp_23.pdf

Keep practising this topic