NIELIT O Level Exam

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 उपयोग होता है?

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 वाला है।
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