It was ----- who did the homework.
A
Correct answer
Explanation
In cleft sentences like 'It was...who...', the pronoun remains in the subjective case because it's the subject of the relative clause. The full structure is 'It was I who did the homework', where 'I' is the subject of 'did'. 'Me' is an object pronoun and would be incorrect.