Past-paper question · 2023 May-June · Paper 21 · Q7(c)

Question 7(c) 2023 · May-June · Paper 21 · 2 marks

Original past-paper question for 7(C)
Original past-paper question for 7(C)
Original past-paper question for 7(C)
Original past-paper question for 7(C)
Reveal official mark-scheme answer Official mark-scheme answer for 7(C)

Official answer for Question 7

Part (c)

✓
One mark per mark point, max two

Question 2

✓
The algorithm would not stop
✓
… because it would not have found the item it was seeking
✓
Or
✓
The array would run out of values after the pointer reached 13
✓
the algorithm will crash
✓
Question
✓
Answer
✓
Marks

Mark scheme 2210_s23_ms_21.pdf →

Show text version of question

Question 7

Part (c)

Question 7

The flowchart represents an algorithm. START Pointer

Question 1

INPUT Letter IS No Word[Pointer, 1] Pointer Pointer + 1 = Letter ? Yes OUTPUT "Letter ", Letter, " is represented by ", Word[Pointer, 2] OUTPUT "Another Letter? (Y or N)" INPUT Choice IS Yes No Choice = STOP 'Y' ?

Question 7

The table represents the two-dimensional (2D) array Word[] which stores the first half of the phonetic alphabet used for radio transmission. For example, Word[10,1] is ‘J’. Index

Question 1

Question 2

Question 1

A Alpha

Question 2

B Bravo

Question 3

C Charlie

Question 4

D Delta

Question 5

E Echo

Question 6

F Foxtrot

Question 7

G Golf

Question 8

H Hotel

Question 9

I India

Question 10

J Juliet

Question 11

K Kilo

Question 12

L Lima

Question 13

M Mike

Part (c)

Describe one problem that could occur with this algorithm if an invalid character was input.

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

[2]

Question 9

Question 10

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_s23_qp_21.pdf

Keep practising this topic