Past-paper question · 2012 October-November · Paper 32 · Q8(a)(iv)

Question 8(a)(iv) 2012 · October-November · Paper 32 · 2 marks

Original past-paper question for 8(A)(IV)
Original past-paper question for 8(A)(IV)
Original past-paper question for 8(A)(IV)
Reveal official mark-scheme answer Official mark-scheme answer for 8(A)(IV)

Official answer for Question 8

Part (a)

(iv)

(iv)

ThisChar

[1]
[1]
✓
ThisString

Mark scheme 9691_w12_ms_32.pdf →

Show text version of question

Question 8

Part (a)

(iv)

A
high-level programming language has the following built-in function For

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.

[2]

Question 15

Topic relevance

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

Keep practising this topic