Let student marks x correct answers and y incorrect. So 3x−2y=5 and x+y≤5 where x,y∈W Only possible solution is (x,y)=(3,2) Students can mark correct answers by only one choice but for an incorrect answer, there are two choices. So total number of ways of scoring 5 marks =5C3(1)3⋅(2)2=40