A=B=D=TRUE,C=FALSE,以下表达式逻辑值为真的是( )
问题描述:
A=B=D=TRUE,C=FALSE,以下表达式逻辑值为真的是( )
选项:A .A AND B AND C AND D B.A AND B OR C AND D C.A AND (B OR C) AND D D.(A OR B) AND (C AND D)
答
B.
TRUE AND TRUE=TRUE(1)
TRUE AND FALSE=FALSE(2)
FALSE AND FALSE=FALSE(3)
TRUE OR TRUE =TRUE(4)
TRUE OR FALSE=TRUE(5)
FALSE OR FALSE = FALSE(6)
A AND B = TRUE AND TRUE=TRUE(1)
C AND D= TRUE AND FALSE=FALSE(2)
TRUE OR FALSE=TRUE(5)
故答案为B