MCQ Answer

What is Full form of LEGB ?

What is Full form of LEGB ?

LEGB का फुल फॉर्म क्या है?
Topic : Modules in Python

A. Low, Enclosing, Global and Built-in

B. Local, Enclosing, Global and Built-in

C. Local, Ending, Global and Built-in

D. Light, Emitting, Global and Built-in




Correct Answer is :

B. Local, Enclosing, Global and Built-in



Explanation

LEGB in Python stands for the four scopes that the language uses to look up the value of a variable. It is an acronym for the following:

Local: Refers to the current function or block.

Enclosing: Refers to the local scope of any enclosing functions (from inner to outer).

Global: Refers to the global scope of the module or script.

Built-in: Refers to the built-in names module containing Python's built-in functions.

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