Question 3(c) 2013 · May-June · Paper 21 · 1 mark
Reveal official mark-scheme answer
Official answer for Question 3
Part (c)
Part (c)
- within the module/subroutine/block in which it is declared
Show text version of question
Question 3
Part (c)
Question 3
Meena needs to be aware of her average grade and declares a variable AvMark, which For
she decides will be a global variable. Examiner's Use
Part (c)
Good programming practice uses local variables.
What is the scope of a local variable?
To make future computation more straightforward Meena retrieves her marks from the file and stores them in an array, Marks. This array has 30 elements, and marks range from 0 to 100.
Why this question appears here
71% assigned-topic match · Programming › Structured programming
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_s13_qp_21.pdf
