The correct anwer is option C.
"Trembling with excitement, I waited to hear my name" is the sentence where both a participle and an infinitive are used correctly.
The participial phrase "trembling with excitement" is fulfilling the function of an adverbial phrase of manner. Whereas, the infinitive "to hear" has the function of a direct object.