Past-paper question · 2015 October-November · Paper 32 · Q6(a)(iii)

Question 6(a)(iii) 2015 · October-November · Paper 32 · 1 mark

Original past-paper question for 6(A)(III)
Original past-paper question for 6(A)(III)
Reveal official mark-scheme answer Official mark-scheme answer for 6(A)(III)

Official answer for Question 6

Part (a)

(iii)

(iii)

ERROR

[1]

Mark scheme 9691_w15_ms_32.pdf →

Show text version of question

Question 6

Part (a)

(iii)

Question 6

Part (a)

A user-defined function CountBig is defined, using pseudocode, as follows:

CountBig(ThisArray : ARRAY OF INTEGER, ThisValue : INTEGER, ThisFlag : CHAR) : INTEGER The function checks each element in the array ThisArray. It counts the number of elements which are greater than (or greater than or equal to) ThisValue. The function returns the count value. ThisFlag has two permitted values: • Y – indicates values equal to ThisValue are to be included in the count • N – indicates values equal to ThisValue will not be included in the count An error is generated if the function is not correctly formed. The function is used with the three arrays shown below: Subscript/Index Identifier

Question 1

Question 2

Question 3

Question 4

Question 5

Question 6

Question 7

Question 8

Question 9

Question 10

ScoreA

Question 16

Question 19

Question 23

Question 28

Question 28

Question 36

ScoreB

Question 71

Question 67

Question 51

Question 82

Question 77

Question 12

Question 80

Question 16

ScoreC

Question 19

Question 19

Question 19

Question 19

Question 19

Question 19

Question 19

Question 19

Question 19

State the value returned by the following function calls:

(iii)

CountBig('Y', ScoreC, 18) .......................................................................................................................................[1]

Topic relevance

Why this question appears here

98% assigned-topic match · Data types and structures › Arrays

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_w15_qp_32.pdf

Keep practising this topic