Q. What does the 'global' keyword do in a function?

  • (A) Access global variables
  • (B) Declare global constants
  • (C) Reset variables
  • (D) Stop function execution
πŸ’¬ Discuss
βœ… Correct Answer: (A) Access global variables
Explanation: The 'global' keyword allows a function to access variables declared outside its scope.
Explanation by: Rati Dubey
The 'global' keyword allows a function to access variables declared outside its scope.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
86
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
94%
Success Rate