The subject of the Passive Voice is changed into the object of the Active Voice. Also, the object of the Passive Voice is changed into the subject of the Active Voice.
The removal of the "to be" verb ['be'] and the preposition "by" is necessary while changing the voice of the sentence from Passive to Active.
These types of questions contain Modal verbs and they should be used correctly as stated below.
Some of the modal verbs are: Can, could, may, might, shall, should, will, would, must, ought to.
In Passive voice, the format is: Object of the Active voice (Subjective case) + Modal + be + V3 + by + Subject of the Active voice (Objective case).
Thus, the format of such a sentence in Active voice is: Subject + Modal + V1 + Object.
For example:
This can be done by you. (Passive Voice)
You can do this. (Active Voice)
The options except (d) don't follow the correct grammatical format of the Active Voice.
Therefore, the correct answer is option (d): You must do the homework.