Task 8: A


Methods and properties can also be accessed without the use of an object. To do this,
the methods/properties must be declared static. Static methods/properties of a class can
then be accessed directly with the help of the Class properties and class methods by using
the double colon also know as the Scope resolution operator.


Task 8: B


A static property or method can be accessed by coding the self keyword,
followed by a double colon and the property or method name.

Task 8: C


Create Questions for Student:
Total number of questions created: 7
Student answers begin:
What is 2*2 ? = 16
Current Success rate for student: 0%
What is 2*3 ? = 2
Current Success rate for student: 0%
What is 2*4 ? = 6
Current Success rate for student: 0%
What is 2*5 ? = 10
Current Success rate for student: 14.285714285714%
What is 2*6 ? = 16
Current Success rate for student: 14.285714285714%
What is 2*7 ? = 14
Current Success rate for student: 28.571428571429%
What is 2*8 ? = 12
Current Success rate for student: 28.571428571429%
Total amount of correct answers from student: 2 out of 7
By using the Static method and properties you can view the overall status of an object with out having
to recalculate all of the stats to see how a student is currently doing.