

McqMate
Q. |
What is the order of namespaces in which Python looks for an identifier? |
A. | python first searches the global namespace, then the local namespace and finally the built- in namespace |
B. | python first searches the local namespace, then the global namespace and finally the built-in namespace |
C. | python first searches the built-in namespace, then the global namespace and finally the local namespace |
D. | python first searches the built-in namespace, then the local namespace and finally the global namespace |
Answer» B. python first searches the local namespace, then the global namespace and finally the built-in namespace | |
Explanation: python first searches for the local, then the global and finally the built-in namespace. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet