Q. What is the purpose of the dynamic scoping?

  • (A) Variables can be declared outside the scope
  • (B) Variables must be declared outside the scope
  • (C) Variables cannot be declared outside the scope
  • (D) None of the mentioned
πŸ’¬ Discuss
βœ… Correct Answer: (A) Variables can be declared outside the scope
Explanation: Dynamic scoping creates variables that can be called from outside the block of code in which they are defined. A variable declared in this fashion is sometimes called a public variable.
Explanation by: Tanmay
Dynamic scoping creates variables that can be called from outside the block of code in which they are defined. A variable declared in this fashion is sometimes called a public variable.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
207
Total Visits
πŸ“½οΈ
4 y ago
Published
πŸŽ–οΈ
Tanmay
Publisher
πŸ“ˆ
85%
Success Rate