Q. What is lexical scope?

  • (A) Scope determined at compile time based on code structure
  • (B) Scope determined at runtime
  • (C) Scope of a function inside a loop
  • (D) Scope within a class
πŸ’¬ Discuss
βœ… Correct Answer: (A) Scope determined at compile time based on code structure
Explanation: Lexical scope means the scope is determined by the physical placement of code.
Explanation by: Mr. Dubey
Lexical scope means the scope is determined by the physical placement of code.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
64
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Mr. Dubey
Publisher
πŸ“ˆ
90%
Success Rate