The grade you receive on a test is a discrete random variable with probability mass function
where the probability of getting a D is 25% because there are only 4 possible grades, and the probabilities must sum to 1 :
0.4 + 0.2 + 0.15 + 0.25 = 1
The expected test score/GPA is then
so your average would fall between a B and a C.