Q. How do you define a function (method) in Ruby?
β
Correct Answer: (C)
def functionName() end
Explanation: In Ruby, methods are defined using 'def' followed by the method name and 'end' to close.