Computer Science for IGCSE & O level - Programming (Section 1 - No. 40)

Which variable(s) are likely to be declared as global variables?
StudentTotal
ClassName
SubjectTotal
Mark

Explanation

Global variables are accessible from anywhere in the program. In the code examples, variables like ClassName and student-related totals would likely be global, whereas Mark is only used within inner loops.

Comments (0)

Advertisement