

McqMate
Q. |
What is a variable defined outside a function referred to as? |
A. | a static variable |
B. | a global variable |
C. | a local variable |
D. | an automatic variable |
Answer» B. a global variable | |
Explanation: the value of a variable defined outside all function definitions is referred to as a global variable and can be used by multiple functions of the program. |
View all MCQs in
Problem Solving and Python ProgrammingNo comments yet