Vidyalelo
Ruby Programming · Q43

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 43

Q43

What is the purpose of the advance method for a Time object in Ruby?

A.
Subtracts a specified number of seconds, minutes, hours, days, months, or years from the Time object
B.
Sets the Time object to the beginning of the current day
C.
Adds a specified number of seconds, minutes, hours, days, months, or years to the Time object
Answer
D.
Sets the Time object to the beginning of the current month

Answer: Option C

Solution

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