All mock tests are FREE till 31 December — register to save your progress
Unit 3 · Programming Concepts & Python HTET 2021 PGT Computer Science

A variable declared within the block {} has the following scope :

ब्लॉक {} के भीतर घोषित एक चर का निम्नलिखित स्कोप होता है :

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: B. Local Scopeलोकल स्कोप

Explanation

A variable declared inside a block { } has local (block) scope.

ब्लॉक { } के भीतर घोषित चर का स्कोप लोकल होता है।

More Programming Concepts & Python questions