All mock tests are FREE till 31 December — register to save your progress

The condition num != 65 cannot be replaced by

Pick an option to check yourself, or open the answer below.

Show answer & explanation

Correct answer: D. !(num − 65)

Explanation

num − 65 is non-zero (true) exactly when num ≠ 65, so A, B and C are equivalent. !(num − 65) is true only when num == 65.

More Programming Languages and Computer Graphics questions