Answer:
C. Wondering if the students really understood the material, Sam decided to investigate.
Explanation:
This sentence correctly uses a comma to separate the participle phrase from the main clause, providing clarity and maintaining grammatical correctness.