Question 341
!(a > 5 && b <= 10) for all int values of a and b?Main Solution
Solution:
Answer: A. By De Morgan's law, !(P && Q) is equivalent to !P || !Q. The negation of a > 5 is a <= 5 (not a < 5, which excludes equality), and the negation of b <= 10 is b > 10. The operator must also flip from && to ||. Choices B, C, and D each get at least one of the pieces wrong — either the relational flip (< vs <=) or the connective.
Answer: Correct: A
Answer images

