A

Admin • 833K Points
Coach

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
  • Correct Answer - Option(D)
  • Views: 27
  • Filed under category Ruby
  • Hashtags:

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.