Whatisthevalueofthefollowingexpression?true||true&&false
查看答案
Assumex=4andy=5,whichofthefollowingistrue?
A. x>5&&y>5
B. x>5||y>5
C. x<5||y<5
D. x<5&&y<5
Whichofthefollowingisthecorrectexpressionthatevaluatestotrueifthenumberxisbetween1and100orthenumberisnegative?
A. ((x<100)&&(x>1))&&(x<0)
B. (1>x>100)||(x<0)
C. ((x<100)&&(x>1))||(x<0)
D. 1
WhichoftheBooleanexpressionsbelowhasincorrectsyntax?
A. (x>0)||(x<0)
B. (x!=0)||(x=0)
C. !(x>0)&&(x>0)
D. (true)&&(3>4)
Assumex=4andy=5,whichofthefollowingistrue?
A. !(x==4)^y!=5
B. x!=4^y==5
C. x!=5^y!=4
D. x==5^y==4