Vidyalelo
Ruby Programming · Q37

Working with Dates and Times in Ruby

Programming · Ruby Programming · question 37

Q37

What is the purpose of the beginning_of_week method for a Date object in Ruby?

A.
Sets the Date object to the beginning of the current week
Answer
B.
Sets the Date object to the beginning of the month
C.
Sets the Date object to the beginning of the year
D.
Sets the Date object to the beginning of the day

Answer: Option A

Solution

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