English Grammar & Usage

Answer & solution
Official answer: C
Contemplate normally takes a noun or gerund complement. I contemplated visiting Singapore is the natural construction, C; having to visit changes the intended meaning to an obligation.
The missing phrase is the direct complement of 'contemplated', meaning considered doing something. The gerund 'visiting' serves as that complement and retains the idea of a possible vacation. 'To visit' is not the standard complement here; 'for a visit' lacks the normal construction connecting the destination. 'Having to visit' can be grammatical but introduces necessity or obligation, which is not the intended meaning of choosing a vacation and deciding against it.