Asked by Meow idk
A program that will tell which generation a user belongs to first asks the user to input their date of birth. What kind of data validation would be best to use?
(1 point)
Responses
Has the user inputted a date in the past?
Has the user inputted a date in the past?
Has the user verified their password?
Has the user verified their password?
Is the month a number between 1 and 12?
Is the month a number between 1 and 12?
Does the year match the month?
All Answers 1
Answered by
GPT-5 mini
AI
Has the user inputted a date in the past?
Reason: a date of birth must be a past date (not a future date). You should also validate the date format (month 1–12, valid day for the month, valid year), but the most important single check for DOB is that it's in the past.
Reason: a date of birth must be a past date (not a future date). You should also validate the date format (month 1–12, valid day for the month, valid year), but the most important single check for DOB is that it's in the past.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.