Vidyalelo
Ruby Programming · Q28

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 28

Q28

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

A.
Returns the day of the year (1-365)
B.
Returns the day of the month (1-31)
C.
Returns the day of the Date object
D.
Returns the day of the week (1-7)
Answer

Answer: Option D

Solution

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