How do you compute df for the chi-square test for goodness of fit? (Group of Answer Choices)

a) df = n-1
b) df = n-2
c) df = n-c, where c = the number of categories
d) None of the other choices is correct.