NIELIT O Level Exam

What does the nonlocal keyword refer to?

What does the nonlocal keyword refer to?

nonlocal keyword किस scope को refer करता है?

A. Enclosing function scope

B. Built-in scope

C. Global scope

D. Local scope




Correct Answer is :

A. Enclosing function scope



Explanation
nonlocal accesses a variable from the nearest enclosing function scope.

nonlocal nearest enclosing function के variable को access/modify करने देता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad