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
D. Sets the Time object to the beginning of the current month
Answer: Option C
How do you create a new Date object representing the current date in Ruby?
A. Date.now
B. Date.current
C. Date.today
D. Date.new
What does the strftime method do in Ruby when applied to a Time object?
A. Returns the year of the Time object
B. Formats a Time object into a string according to the specified format
C. Returns the day of the week of the Time object
D. None of the above
Which method is used to subtract a number of days from a Date object in Ruby?
A. prev_days
B. days_ago
C. prev_day
D. subtract_days
What is the purpose of the strptime method in Ruby?
A. Converts a Date or Time object to a string
B. Returns the day of the month of the Date or Time object
C. Returns the month of the Date or Time object
D. Parses a string into a Date or Time object using a specified format

Join The Discussion