The two ways of relating what a person has said are 1)direct and 2)indirect (reported).
In the direct speech, the exact words of the original speaker are repeated.
In the indirect speech (reported speech), the exact meaning of what the speaker told is expressed but not necessarily in the speaker’s exact words.
Option A is correct as the proper introductory verb 'asked' is used, appropriate conjunction 'if' is used and the given question is in simple present tense so the reported sentence uses the simple past tense and 'you' becomes 'he/she' and ends with a full stop.
Options B, C, and D are wrong as thee appropriate conjunction is not used, the reported sentence cannot use 'did', and 'did write' cannot be used respectively.
The correct answer is A) The teacher asked the student if he/she wrote a good hand.