Login or Create an Account to view the mark scheme, comment, and add to a test
if NOT X AND Y then
output TRUE
else
output FALSE
end if
With respect to the pseudocode above and trace table below, choose the correct boolean values for outputs N & M.
+-------+-------+----------+
| X | Y | OUTPUT |
+-------+-------+----------+
| FALSE | FALSE | FALSE |
| FALSE | TRUE | N |
| TRUE | FALSE | M |
| TRUE | TRUE | FALSE |
+-------+-------+----------+
(a).
N = FALSE and M = FALSE
(b).
N = FALSE and M = TRUE
(c).
N = TRUE and M = FALSE
(d).
N = TRUE and M = TRUE
Multiple Choice1 MarkPremium
44 Uses59 Views1 Like