题目内容

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

Supposex=10andy=10.Whatisxafterevaluatingtheexpression(y>=10)||(x++>10).

A. 11
B. 9
C. 10

Supposex=0andy=0whatisxafterevaluatingtheexpression(y>0)&&(1>x++).

A. 0
B. 1
C. -1

答案查题题库