Computer Science for IGCSE & O level - Programming (Section 7 - No. 23)

Which of the following best defines the concept of scope in programming?
The amount of memory used by a variable.
The range of values a variable can hold.
The portion of the code where a variable is accessible.
The name assigned to a variable.

Explanation

Scope determines where in the program a variable can be referenced and used.

Comments (0)

Advertisement