MCQ Answer

Which keyword allows modification of a global variable inside a function?

Which keyword allows modification of a global variable inside a function?

Function के अंदर global variable को modify करने के लिए कौन-सा keyword उपयोग होता है?
Topic : Functions in Python

A. extern

B. static

C. global

D. nonlocal




Correct Answer is :

C. global



Explanation
global tells Python that the name refers to a global variable.

global keyword बताता है कि variable global scope वाला है।
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