Start learning →

How is the scope of a variable mathematically related to its lifetime?

AScope is a subset
BScope is an inverse
CScope is disjoint
DScope is identical
Answer & Solution
Correct answer: A. Scope is a subset
A variable can only be in scope while it exists, making scope a subset of lifetime.
Practise this question with Quill — ICSE Class 10 →

Keep practising Classes, Encapsulation and Scope

Browse all Classes, Encapsulation and Scope questions for ICSE Class 10, or explore more Computer Applications topics.

Start a Classes, Encapsulation and Scope lesson →