Computer Science · Oct / Nov 2023 · Paper 22 · Question 8
0478
As printed in the paper
The question as text
Explain why a programmer would use procedures and parameters when writing a program. [4]
Read automatically from the paper; the printed page above is exact.
Show the answer and mark scheme
One mark per mark point, max four
Procedures, max three
MP1
to enable the programmer to write a collection of programming statements under a single identifier
MP2
to allow modular programs to be created // to allow procedures to be re-used within the program or in other programs
MP3
to make program creation faster because procedures can be re-used // to enable different programmers to work on different procedures in the same project
MP4
to make programs shorter (than using the repeated code) / using less duplication of code // to make programs easier to maintain due to being shorter.
Parameters, max three
MP5
to pass values from the main program to a procedure / function MP6
…so that they can be used in the procedure / function
MP7
allow the procedure / function to be re-used with different data.
Make a free account to save your answers and see your weak topics and ask the AI why a wrong answer is wrong.

