The correct response to the question "Est-ce qu'il y a un ordinateur dans ta classe?" is:
Oui, il y a un ordinateur dans ma classe.
This answer is grammatically correct and appropriately responds to the question. The other options either use the incorrect pronoun ("il" instead of "il y a") or are missing the article "un" before "ordinateur."