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

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.

Related Questions