Correct Answer: C
Explanation:
The use of the verb "learn" is essentially as a modifier of the students "shock." This means that "learning" must be turned into a form that will describe why the students were "shocked." "Were shocked to learn," using an infinitive form, is the best choice among the answers.