首页题目详情

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.

查看答案和解析

支付 ¥0.1 即可查看此题答案和详细解析

低至 ¥0.1 起

计算机专业英语单选题中等AI生成