ICSE Class 10 Computer Applications Question 2 of 17

Encapsulation — Question 5

Back to all questions
5
Question

Question 5

Define scope and visibility.

Answer

Scope refers to the parts of the program where a particular piece of code or data item would be known and can be accessed.

Visibility is a related term and refers to whether we can use a variable from a given place in the program.