Fig. 1 shows a robot warehouse route selector. The robot can use the narrow aisle when its load is light or its battery is low. The Boolean variables lightL...

Assessment: Computer Science 9210 | Paper 2 Mock 01 | Concepts and principles of computer science Subject: Computer Science - 9210

Question 1 Report

Fig. 1 shows a robot warehouse route selector. The robot can use the narrow aisle when its load is light or its battery is low. The Boolean variables lightLoad and lowBattery are set by sensors before the route algorithm runs.

lightLoadlowBatteryORnarrowAisle

(a) State the output when both sensor values are true. [1]
(b) Give the output when lightLoad is false and lowBattery is true. [1]
(c) State the output when both values are false. [1]
(d) Give a Boolean expression for a different route that is selected only when the load is light and the battery is not low. [3]

Answer Details

An OR operation produces true when at least one input is true.

  1. (a) Both inputs are true, so lightLoad OR lowBattery is true. [1]
  2. (b) A true lowBattery input is enough for an OR gate, so the output is true. [1]
  3. (c) With both inputs false, neither reason for using the narrow aisle applies, so the output is false. [1]
  4. (d) The load must be light and the battery must not be low: lightLoad AND NOT lowBattery. AND requires both conditions, while NOT reverses the value of lowBattery. [3]

Exam reminder: OR means one or both inputs can be true; AND means every required input must be true.

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