Vidyalelo
Ruby Programming · Q72

Advanced Topics in Ruby

Programming · Ruby Programming · question 72

Q72

What is the purpose of the method_missing method in Ruby's BasicObject class?

A.
It is called when a method is defined on a class object that already exists
B.
It is called when a method is called on a class object that does not exist
C.
It is called when a method is defined on an object that already exists
D.
It is called when a method is called on an object that does not respond to the method
Answer

Answer: Option D

Solution

Answer: Option D
No explanation is given for this question Let's Discuss on Board