问题

They were walking along the shore _______ a huge wave appeared out of nowhere, sweeping them out to sea
A:as
B:while
C:when
D:though
B:while
C:when
D:though
正确答案是: