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 no...

Assessment: Computer Science 9210 | Paper 1 Mock 01 | Programming (on-screen) Subject: Computer Science - 9210

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]

Answer Details

The condition is usable = chargeOK AND NOT damaged. Both sufficient charge and no damage are required.

  1. (a) When damaged is True, NOT damaged becomes False. [1] The calculation is then True AND False, which gives usable=False. [1]
  2. (b) If chargeOK is False and damaged is False, then NOT damaged is True, but False AND True is False. [1]
  3. (c) Testing both conditions prevents a battery with insufficient charge or damage from being used for flight. [1]

Download The App On Google Playstore

Everything you need to excel in your exams

Green Bridge CBT Mobile App
Personalized AI Learning Chat Assistant
200,000+ Exam Questions Across IGCSE, JAMB, WAEC & NECO
Over 3,900 Lesson Notes
Offline Support - Learn Anytime, Anywhere
Green Bridge Timetable
Literature Summaries & Potential Questions
Track Your Performance & Progress
In-depth Explanations for Comprehensive Learning