Vidyalelo
Ruby Programming · Q20

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 20

Q20

What does the month method return for a Date object in Ruby?

A.
Returns the day of the month (1-31)
B.
Returns the month of the year (1-12)
Answer
C.
Returns the year of the Date object
D.
None of the above

Answer: Option B

Solution

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