Exam-style question
Try this first
A = true, B = false and C = true. What is the value of (A AND NOT B) OR C?.
- A.true
- B.false
- C.undefined
- D.It depends on the programming language
Model answer
What a good answer should say
- true
Explanation
Why this works
NOT B is true because B is false. Therefore A AND NOT B is true, and true OR C is true.
Common mistake
No common mistake is linked to this question yet.
