Past continuous questions and negatives

They were sitting by the computer.
She wasn´t looking at the board.
Was Mary playing basketball yesterday?
Were you writing your homework in the evening?
Tim was waiting for his friend a long time.