Question 9(b) 2025 · May-June · Paper 21 · 6 marks
Reveal official mark-scheme answer
Official answer for Question 9
Part (b)
Question 6
Show text version of question
Question 9
Part (b)
Question 9
The variables A and B are used in a program. A holds a whole number and B holds text.
Part (b)
The function Odds(X) returns ‘Odd’ if the value of X is an odd number and returns ‘Even’ if
the value of X is an even number.
Write pseudocode statements to:
- define the function
- call the function using parameter A and store the return item in variable B
Function definition ....................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
...................................................................................................................................................
Function call .............................................................................................................................
...................................................................................................................................................
Question 10
, ,
Why this question appears here
98% assigned-topic match · Programming › Programming concepts
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 0478_s25_qp_21.pdf
