Past-paper question · 2018 May-June · Paper 21 · Q4(b)

Question 4(b) 2018 · May-June · Paper 21 · 9 marks

Original past-paper question for 4(B)
Original past-paper question for 4(B)
Original past-paper question for 4(B)
Original past-paper question for 4(B)
Reveal official mark-scheme answer Official mark-scheme answer for 4(B)

Official answer for Question 4

Part (b)

Question 6

✓
ItemProcess
✓
InString
✓
InString
✓
RetFlag
✓
AddToList
✓
RemoveFromList
✓
Mark as follows:
✓
One mark for top box
✓
One mark for both lower boxes
✓
One mark for diamond 'decision' symbol
✓
One mark for each parameter (3 parameters)
✓
Question
✓
Answer
✓
Marks

Mark scheme 9608_s18_ms_21.pdf →

Show text version of question

Question 4

Part (b)

Question 4

Part (a)

A structure chart is used in modular program design.

Iteration and selection are two features of an algorithm that may be shown on a structure chart. Give three other features. Feature 1 .................................................................................................................................. ................................................................................................................................................... Feature 2 .................................................................................................................................. ................................................................................................................................................... Feature 3 .................................................................................................................................. ...................................................................................................................................................

[3]

Part (b)

Pseudocode for a function is shown.

FUNCTION ItemProcess (AddItem, InString : STRING) RETURNS BOOLEAN DECLARE RetFlag : BOOLEAN RetFlag FALSE IF AddItem = "Yes" THEN RetFlag AddToList(InString) ELSE CALL RemoveFromList(InString) ENDIF RETURN RetFlag ENDFUNCTION Draw a structure chart on the next page to represent this pseudocode.

Question 9

[6]

Question 10

Topic relevance

Why this question appears here

83% assigned-topic match · Programming › Constructs

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 9608_s18_qp_21.pdf

Keep practising this topic