computeMaxScore(defaultQuestionMaxScore:)
Computes the maximum possible score for this AssignableDocument as defined by each individual question’s maxScore.
Declaration
func computeMaxScore(defaultQuestionMaxScore: Double? = Double.zero) -> Double?Parameters
- defaultQuestionMaxScore:
If a question has a
nilmaxScorevalue, the value that should be used instead.
Return Value
The maximum possible score for this AssignableDocument as defined by each individual question’s maxScore. nil is returned, if any individual’s maxScore is nil and defaultQuestionMaxScore is nil.