4. While the class was writing (write) a test, Peter was talking (talk) to his friend.
Ответ: was writing, was talking