MCQ Answer

What happens if a local and global variable have same name?

What happens if a local and global variable have same name?

यदि किसी लोकल और ग्लोबल वेरिएबल का नाम एक ही हो तो क्या होगा?
Topic : Modules in Python

A. Local variable gets priority

B. Global variable gets priority

C. Error occurs

D. Both are merged




Correct Answer is :

A. Local variable gets priority



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