Question: A question paper consists of 5 problems, each problem having 3 internal choices. In how many ways can a candidate attempt one or more problems?

A: 63
B: 511
C: 1023
D: 31

Ans: C
Solution: There are 5 problems. Each problem having three choices to answer. (Suppose the question as a multiple choice question having 3 options)

So a candidate can either answer 1, 2, 3, 4 or all 5 questions.

No of ways to answer only one question = 5C1*3
No of ways to answer 2 questions = 5C2*32 (For each question there are 3 different choices to answer)
No of ways to answer 3 questions = 5C3*33
No of ways to answer 4 questions = 5C4*34
No of ways to answer 5 questions = 5C5*35
So, Total number of ways = 5C1*3 + 5C2*325C3*335C4*34 + 5C5*35
= (1+3)5 - 1(From binomial theorem)
=1023