Question 8(a)(ii) 2012 · October-November · Paper 32 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 8
Part (a)
(ii)
(ii)
CharacterCount
Show text version of question
Question 8
Part (a)
(ii)
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.
(ii)
State the function identifier for the function given above.
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
