CodeLab Question


"Suppose there is a class Alarm. Alarm has two class variables, code which contains a String value representing the code that deactivates the alarm, and arm which contains a boolean describing whether or not the alarm is activated.

Alarm has a function arm that takes no parameters and changes the value of armed to False. Call the arm function on the Alarm object myAlarm."


It also says that it requires the following terms to be used:

You almost certainly should be using: "( )"

You almost certainly should be using:" . (period)"

You almost certainly should be using: "arm"

You almost certainly should be using: "myAlarm"