Past-paper question · 2013 May-June · Paper 31 · Q7(b)(i)
Question 7(b)(i) 2013 · May-June · Paper 31 · 3 marks
Reveal official mark-scheme answer
Official answer for Question 7
Part (b)
(i)
Part (b)
(i)
FUNCTION StringFound(ThisArray : STRING , UBound : INTEGER,
✓
ThisValue : STRING) RETURNS BOOLEAN
✓
Mark as follows:
✓
FUNCTION StringFound
[1]
✓
‘Array variable’ : STRING data type
[1]
✓
ThisValue : STRING // ‘UBound’ : INTEGER
[1]
Show text version of question
Question 7
Part (b)
(i)
A
programmer writes pseudocode to report whether or not a string value ThisValue is For
found in the string array ThisArray. This is designed as a function StringFound Examiner's Use which returns a Boolean value.
(i)
Show the function header for function StringFound.
[3]
Topic relevance
Why this question appears here
82% 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_s13_qp_31.pdf
