Question 1 Report
A drone survey program checks whether a battery may be used for another flight. The battery is accepted when its charge is at least 40 percent and it has not been flagged as damaged. The skeleton program contains the statement usable = chargeOK AND NOT damaged. During a maintenance test, chargeOK is True but damaged is also True. The operator asks why the program rejects the battery even though the displayed charge level is sufficient. The answer must refer to the Boolean operations rather than to battery chemistry.
(a) Explain why usable is False in this test. [2]
(b) When chargeOK is False and damaged is False, state the value of usable. [1]
(c) Explain one safety reason for testing both conditions before allowing a flight. [1]
The condition is usable = chargeOK AND NOT damaged. Both sufficient charge and no damage are required.
damaged is True, NOT damaged becomes False. [1] The calculation is then True AND False, which gives usable=False. [1]chargeOK is False and damaged is False, then NOT damaged is True, but False AND True is False. [1]Everything you need to excel in your exams