Selecting Words - Verbal and Reasoning

Q1:

The telephone ...... several times before I answered it.

A was ringing

B has rung

C had rung

D would ring

ANS:C - had rung

As there are two actions given. And one of them occurred first, so the first action should come with "had"/ past perfect tense and the second action come up with simple past tense.