If a variable is defined inside a user-defined function, what is its “scope”,…
PYQ KVS TGT/PGT 2026
If a variable is defined inside a user-defined function, what is its “scope”, and where can it be accessed?
- A.
Global Scope; it can be accessed anywhere in the entire program.
- B.
Local Scope; it can only be accessed within that specific function.
- C.
Universal Scope; it is saved to the hard drive for future use.
- D.
Static Scope; it can only be accessed by the main operating system.
Attempted by 1001 students.
Sign up free to check your answer
Sign up freeLoading lesson…

