若有定义:int x=5,y=6;则表达式x=(y==6)的值为()
第1题:
若有定义: int a=7;float x=2.5,y=4.7;则表达式x+a%3,(int)(x+y)%2/4的值是( )。
A.2.5
B.2.75
C.3.5
D.0
第2题:
已有定义:int x=3,y=4,z=5,则表达式!(x+y)+z-1&&y+x/2的值是
A.6
B.0
C.2
D.1
第3题:
若有定义语句:int x=3,y=2,z=1;则表达式x <y?x:y的值是______。
第4题:
若有如下定义: int x=6,y=3,z=2; 则表达式x=y||y<z&&z==z的值是( )。
A.0
B.1
C.4
D.6
第5题:
设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是( )。
A.x&&y
B.x<=y
C.x‖y+z&&y-z
D.!((x<y)&&!z‖1)
第6题:
若有定义intx=3,y=2和floata=2.5,b=3.5,则表达式:(x+y)%2+(int)a/(int)b的值是()。
A.0
B.2
C.1.5
D.1
第7题:
已有定义int x=3, y=4, z=5;则表达式“!(x+y)+z-1y+z/2”的值是________。
A.6
B.0
C.2
D.1
第8题:
假设定义:int x=3,y=3;则复合赋值表达式x/=1+y 的值为(51)。
A.0
B.0.75
C.6
D.以上都错
第9题:
若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。
第10题:
设x、y和z是int型变量,且x=4,y=6,z=8,则下列表达式中值为0的是( )。
A.x&&y
B.x<=y
C. x||++y&&y-z
D.!(x