Vidyalelo
Ruby Programming · Q32

Advanced Topics in Ruby

Programming · Ruby Programming · question 32

Q32

What is the purpose of the prepend method in Ruby?

A.
Adds a method to the end of a class definition
B.
Adds a module to the inheritance chain after the class itself
C.
Adds a method to the beginning of a class definition
D.
Adds a module to the inheritance chain before the class itself
Answer

Answer: Option D

Solution

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