Login or Create an Account to view the mark scheme, comment, and add to a test
Given the following pseudocode snippet and possible inputs for X and Y, what are the correct boolean values for the corresponding outputs M and N in the table below?
if X AND NOT Y then
output TRUE
else
output FALSE
end if
+-------+-------+----------+
| X | Y | OUTPUT |
+-------+-------+----------+
| FALSE | FALSE | M |
| FALSE | TRUE | N |
| TRUE | FALSE | TRUE |
| TRUE | TRUE | FALSE |
+-------+-------+----------+
(a).
M = FALSE and N = FALSE
(b).
M = FALSE and N = TRUE
(c).
M = TRUE and N = FALSE
(d).
M = TRUE and N = TRUE
Multiple Choice1 MarkCommunity
16 Uses24 Views0 Likes