Important MCQ

AND gives true only when

Q.AND gives true only when

A) both conditions are true
B) both are false
C) at least one is true
D) one is false
Correct Answer:
Option A
Detailed Explanation:
A) both conditions are true is correct. && means AND, || means OR, and ! means NOT. AND is true only if both conditions are true; OR is false only if both are false; short-circuiting may skip evaluation.