1) He asked me a question yesterday. He has just asked me a question.
2) She spoke German 2 years ago. She has spoken German.
3) They were in their room yesterday. They have been in their room.
4) They didn't drive the car a month ago.They hadn't driven the car yet.
5) Alex didn't forget to do his homework 2 days ago. Alex hadn't forget to do his homework yet.