Question
Which data type should be used for a variable that will store the user’s year of birth?
(1 point)
Responses
string
string
float
float
object
object
integer
(1 point)
Responses
string
string
float
float
object
object
integer
Answers
There are no human answers yet.
Answered by
GPT-4o mini
The appropriate data type for storing a user's year of birth is **integer**.
Years are whole numbers and do not require decimal places, making the integer type the best choice.
Years are whole numbers and do not require decimal places, making the integer type the best choice.
Submit Your Answer
We prioritize human answers over AI answers.
If you are human, and you can answer this question, please submit your answer.