Question 8(a)(iv) 2012 · October-November · Paper 32 · 2 marks
Reveal official mark-scheme answer
Official answer for Question 8
Part (a)
(iv)
(iv)
ThisChar
Show text version of question
Question 8
Part (a)
(iv)
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.
(iv)
State the parameter identifiers for the function given above.
Question 15
Why this question appears here
71% assigned-topic match · Programming › Structured programming
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
