Let
i) Since is a true statement, after the command "if x +2=5 then x := 3*x +5" the value of is
Answer:
ii) Since is a true statement, the statemant is also true, and thus after the command "if (x +1=4) OR (2x +2=3) then x := x +1" the value of is
Answer:
iii) Since is a false statement, the statement "( ) AND ( )" is also false, and thus after the command "if (2x +3=5) AND (3x +4=13) then " the value of does not change.
Answer:
iv) Since is a true statement and is a true statement, the statement
"( ) XOR ( )" is false, and thus after the command "if (x +1=4) XOR (x +2=5) then x := x +1" the value of does not change.
Answer:
v) Since is a false statement, after the command "if then " the value of does not change.
Answer:
Comments