Python : Functions in Python

कौन-सा variable local scope में होता है? , Which variable has local scope?

कौन-सा variable local scope में होता है?

Which variable has local scope?
A. Declared outside all functions

B. Declared in loop

C. Declared using global

D. Declared inside a function



Correct Answer :

D. Declared inside a function



Explanation
A variable created inside a function normally belongs to that function's local scope.

Function के अंदर बनाया गया variable सामान्यतः उसी function के local scope में होता है।
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test , CCC MCQ Python Coding Tutorials Best Computer Training Institute in Prayagraj (Allahabad) O Level NIELIT Study material and Quiz Website development Company in Allahabad