Vidyalelo
Ruby Programming · Q39

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 39

Q39

What does the advance method do for a Date object in Ruby?

A.
Subtracts a specified number of days, months, or years from the Date object
B.
Adds a specified number of seconds, minutes, or hours to the Date object
C.
Adds a specified number of days, months, or years to the Date object
Answer
D.
Subtracts a specified number of seconds, minutes, or hours from the Date object

Answer: Option C

Solution

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