Skip to content
MathsGenie logo
Open app

Course home

  1. GCSE
  2. Computer Science Edexcel
  3. Question bank

Computational thinking

EasyMediumHard
12345678910111213141516171819202122232425262728293031323334353637
Question 30

An automated safety system on a cargo ship triggers an emergency bilge pump if water is detected in the lower hold, provided that the main engine is running or the manual override has been activated.

This can be represented by the inputs:

  • WWW: Water is detected in the lower hold
  • EEE: Main engine is running
  • MMM: Manual override has been activated

The logic rule for triggering the bilge pump is given by: W and (E or M)W \text{ and } (E \text{ or } M)W and (E or M)

Complete the truth table by identifying the missing values for [A], [B], [C], [D], [E], and [F].

WWWEEEMMME or ME \text{ or } ME or MW and (E or M)W \text{ and } (E \text{ or } M)W and (E or M)
0000[A]
001[B]0
0101[C]
01110
100[D]0
1011[E]
110[F]1
11111
[6]

Computational thinking Questions

  1. GCSE
  2. /Computer Science
  3. /Computational thinking