Question 8(a)(iii) 2012 · October-November · Paper 32 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 8
Part (a)
(iii)
(iii)
Value(s)/variable(s) which are given/passed (each time the function is called)
Show text version of question
Question 8
Part (a)
(iii)
CharacterCount defined as follows: Examiner's Use
CharacterCount(ThisChar: CHAR, ThisString: STRING) RETURNS INTEGER
returns an integer value for the number of times the character ThisChar occurs within ThisString. CHAR is a data type for a single character.
For Example:
CharacterCount(‘J’, “James Joyce”) will return the integer 2
An error is returned if the function is not properly called.
(iii)
Explain what is meant by the term parameter.
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_w12_qp_32.pdf
