contestada

Which sentence has an accurate use of the preterite tense?
1. El muchacho hizo la tarea anoche.

2. El muchacho se llamó Pablo.