Wednesday 10 June 2026 – Afternoon
A Level Computer Science
H446/01 Computer Systems
Time allowed: 2 hours 30 minutes
INFOMATION
ADVICE
INSTRUCTIONS
[[OCR is a not-for-profit organisation; any surplus made is invested back into the establishment
to help towards the development of qualifications and support, which keep pace with the
changing needs of today’s society. It(OCR) is a leading UK awarding body, providing a wide
range of qualifications to meet the needs of candidates of all ages and abilities. Its include AS/A
Levels, Diplomas, GCSEs, Cambridge Nationals, Cambridge Technicals, Functional Skills, Key
Skills, Entry Level qualifications, NVQs and vocational qualifications in areas such as IT,
business, languages, teaching/training, administration and secretarial skills. OCR is also
responsible for developing new specifications to meet national requirements and the needs of
students and teachers.]]
Turn over
, 2
1 BiDi Solutions is a software development company that creates software using high-level
programming languages.
(a) Complete the table to match the programming terms below to the correct definition.
if array for function while
Definition Term
A block of code that executes and
returns a value
A loop that will run code until a
condition is met
A fixed number of values of the
same data type stored under the
same identifier name
Will test a condition and executes
a block of code only if a specified
condition is true/false
A loop that will run code a fixed
number of times
[5]
, 3
(b) Finding the average (mean) value of a sequence of numbers, and then counting how many
numbers are above the average, is a common task in data analysis.
The function countAboveAverage() takes a 1-dimensional array of numbers called data as a
parameter and will:
• find the average (mean) value of the sequence of numbers
• for each number in the sequence, check if it is above the average
• count and return how many numbers are above the average.
(i) Complete the function countAboveAverage() using pseudocode or program code.
function countAboveAverage(data)
sum = ............................................
for meanCount = 0 to data.length – 1
sum = sum +................................................... [meanCount]
next meanCount
mean = sum / ............................................
............................................ = 0
for aboveCount = 0 to data.length – 1
if data[aboveCount] > mean then
............................................ = numberAbove + 1
endif
next aboveCount
...................................................numberAbove
endfunction
[6]
Turn over