πŸ“Š Ruby
Q. What is the purpose of the trace_var method in Ruby?
  • (A) To create a new instance of a variable
  • (B) To track the usage of a specific variable throughout the execution of a program
  • (C) To print the current value of a variable to the console
  • (D) To set a callback that is triggered whenever a global variable is accessed or modified
πŸ’¬ Discuss
βœ… Correct Answer: (D) To set a callback that is triggered whenever a global variable is accessed or modified

You must be Logged in to update hint/solution

πŸ’¬ Discussion


πŸ“Š Question Analytics

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