Home / Engineering / Problem Solving and Python Programming / Question

M

Mr. Dubey • 51.43K Points
Coach

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
Correct answer : Option (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.

Share

Discusssion

Login to discuss.