MCQ Answer

Which scope is created by a function defined inside another function?

Which scope is created by a function defined inside another function?

किसी दूसरे function के अंदर defined function द्वारा कौन-सा scope बनाया जाता है?
Topic : Modules in Python

A. Local

B. Global

C. Enclosing

D. Built-in




Correct Answer is :

C. Enclosing



Explanation
<p>In LEGB, the outer function provides the enclosing scope for its inner function.</p><p><br></p><p>LEGB rule में outer function, inner function के लिए Enclosing scope बनाता है।</p>
Online Exam Quiz for One day Exam Online Typing Test CCC Online Test 2026 Best Computer Training Institute in Prayagraj (Allahabad) Best Java Training Institute in Prayagraj (Allahabad) Best Python Training Institute in Prayagraj (Allahabad) O Level Online Test in Hindi Best Website and Software Company in Allahabad