Question: Which of the methods below are mutators? ( Mark all that are correct. ) class Exam ( object ) :def getGrade ( self ) :return

Which of the methods below are mutators? (Mark all that are correct.)
class Exam(object):def getGrade(self):return selfigradedef getNbrQuestions(self):return self.nbrQuestionsdef getAveragePts(self):return self:averagePointsdef setGrade(self, gr):self.grade = grself.averagePoints = self.grade / self.nbrQuestionssetGradegetGradegetNbrQuestionsgetAveragePts
Which of the methods below are mutators? ( Mark

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!