A Multiple choice exam has 100 questions, each with 5 possible answers. One mark is awarded for a correct answer and $\frac{1}{4}$ mark is deducted for an incorrect answer. A particular student has probability $p_{i}$ of knowing the correct answer to the $i^{th}$ question, independently of other questions.
a) Suppose that on a question where the student does not know the answer, he or she guesses randomly. Show that his or her total mark has mean $\sum p_i$ and variance $\sum p_{i} (1-p_{i}) + \frac{(100 - \sum p_{i})}{4}$
I was able to show the mean. Taking an approach in which I created a random variable, $X$ that was equal to $\sum_1^{100} X_i$ where $ X_i $ is a number 1 or 0, where the probability of it being 0 is $1-p_i$ and the probability of 1 is $ p_i $. I know that means the expected value is $(0)(1-p_i) + (1)(p_i) = p_i $, but I cannot figure out how to do the variance.