首页题目详情
In the context of logical operators, which of the following expressions will evaluate to true if both operands are true?

A.a || b
B.a && b
C.!a
D.a == b
优质解答
答案
B
解析
The logical AND operator (&&) returns true only if both operands are true. The '||' returns true if at least one operand is true, '!a' returns true if a is false, and 'a == b' is a comparison, not a logic operator.
计算机专业英语单选题中等AI生成