MCQ

M4588 · [1]
The pseudocode enumerates the input rows of a truth table for two inputs A and B and outputs the value of one Boolean expression for each row. loop A from 0 to 1 loop B from 0 to 1 IF (A = 1 OR B = 1) AND NOT (A = 1 AND B = 1) THEN output 1 ELSE output 0 end if end loop end loop What is the sequence of values output?
Checks instantly · free · no account Keys A–D to answer

IBMarker is not affiliated with the International Baccalaureate Organization (IBO). All questions are original, written in the style of the IB Diploma Programme.

Next question →
free · no account