NIELIT O Level Exam

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

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

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

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



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