Question 6(c) 2015 · October-November · Paper 32 · 4 marks
Reveal official mark-scheme answer
Official answer for Question 6
Part (c)
Part (c)
FUNCTION StringFound (ThisArray : ARRAY OF STRING ,
Question 1
Question 1
Question 1
Question 1
Show text version of question
Question 6
Part (c)
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:
Part (c)
A programmer writes pseudocode for a new function StringFound. The function is to report
whether or not a string value ThisValue is found in the string array ThisArray. The function returns a Boolean value. Write the function header for function StringFound. ................................................................................................................................................... ................................................................................................................................................... ...............................................................................................................................................[4]
Question 18
Why this question appears here
83% 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_w15_qp_32.pdf
