We know that,

According to the question,
Total number of questions =5
Number of questions to be answered =4
Compulsory questions are question number 1 and 2
Hence, the number of ways in which the student can make the choice = 3C2
3C2 = 3!/(2!1!) =3 ways