Grammatically both look fine. Depending the context and tense, I would revise them: 1. He did exactly what has been asked.
New words, one handy idiom, and a 2-minute quiz — delivered to your inbox to keep your streak alive.
AnonymousI feel no. 2 is correct but am not so sure about no. 1.Same here. I would say that the first one is wrong. Bare minimum, it's unidiomatic.