What is the scope of a function?
What is the scope of a function? mcq and its answer is provided on this page.
Function is a set of instructions that are performed to carry out a specific task.
There are two types of scopes viz. global scope and local scope.
So a function scope can either be local or global.
What is the scope of a function?
Que. | What is the scope of a function? | |
a | a) Whole source file in which it is defined | |
b | b) From the point of declaration to the end of the file in which it is defined | |
c | c) Any source file in a program | |
d | d) From the point of declaration to the end of the file being compiled | |
Answer: d | ||
Explanation : None. |
Comments
Post a Comment