Past-paper question · 2015 May-June · Paper 22 · Q9(a)

Question 9(a) 2015 · May-June · Paper 22 · 8 marks

Original past-paper question for 9(A)
Original past-paper question for 9(A)
Original past-paper question for 9(A)
Reveal official mark-scheme answer

The answer for this question is in the official mark scheme: open the mark scheme.

Mark scheme 2210_s15_ms_22.pdf →

Show text version of question

Question 9

Part (a)

Question 9

PRINT Large

There are four errors in this code.

Locate these errors and suggest a corrected piece of code for each error.

1 .......................................................................................................................................................

..........................................................................................................................................................

2 .......................................................................................................................................................

..........................................................................................................................................................

3 .......................................................................................................................................................

..........................................................................................................................................................

4 .......................................................................................................................................................

......................................................................................................................................................[4]

Question 6

Question 3

Part (a)

The flowchart below inputs six single digit numbers. The predefined function MOD gives the

value of the remainder, for example, Y ← 10 MOD 3 gives the value Y = 1

START

INPUT A, B, C, D, E, F

Total @ A*1 + B*2 + C*3 + D*4 + E*5

Check @ Total MOD 11

Is Check = Yes OUTPUT F? 'Accept'

No

OUTPUT 'Reject'

END

Question 7

Complete a trace table for each of the two sets of input data.

Set 1 5, 2, 4, 3, 1, 5

Set 2 3, 2, 1, 0, 7, 3

Trace table set 1 5, 2, 4, 3, 1, 5

A
B C D E F Total Check Output

Trace table set 2 3, 2, 1, 0, 7, 3

A
B C D E F Total Check Output
[4]
Topic relevance

Why this question appears here

98% assigned-topic match · Algorithm design and problem-solving

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 2210_s15_qp_22.pdf

Keep practising this topic