首页试卷大全试题详情
难度: 使用次数:138更新时间:2026/03/14
1.
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.

VIP 专属解析

开通 VIP 会员即可查看答案和详细解析

VIP专享

类题推荐:

未分类