Computer Science · Variable Scope
If a variable is defined inside a user-defined function, what is its 'scope', and where can it be accessed?
- 1Global Scope; it can be accessed anywhere in the entire program.
- 2Local Scope; it can only be accessed within that specific function.✓
- 3Universal Scope; it is saved to the hard drive for future use.
- 4Static Scope; it can only be accessed by the main operating system.
Correct answer
Local Scope; it can only be accessed within that specific function.
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Variable Scope?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Variable Scope