Question 4(b) 2018 · May-June · Paper 21 · 9 marks
Reveal official mark-scheme answer
Official answer for Question 4
Part (b)
Question 6
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 .................................................................................................................................. ...................................................................................................................................................
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
Question 10
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
