Answer: a) 390,625, b) 2916.
Explanation:
Since we have given that
Number of possible grades = 5
a) Number of students = 8
Using the "Fundamental theorem of counting", we get that

b) Number of students = 7
Number of students receive F = 0
Number of students receive A = 1
Number of remaining grades = 4
So, Using fundamental theorem of counting , we get that

Hence, a) 390,625, b) 2916.