Select the sentences that have dangling participles.

Sitting on a bench as the sun went down, the ocean stretched out peacefully before them.

Entering the room, the light went on and she gasped in surprise.

During the course of the afternoon, he put down his books and went to exercise.

Exhausted from studying all night, they decided to sleep instead of going to class.

Entering the room, the light went on and she gasped in surprise.