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
Answer and explanation
Concise answer
true
Why this is correct
NOT B is true because B is false. Therefore A AND NOT B is true, and true OR C is true.
Use the concise answer above for a quick check, then reveal the full model answer and detailed explanation.
Common mistake
No common mistake is linked to this question yet.
