若有int x=10;char c='d';则表达式a+c的值的类型是()。
A.char
B.int
C.float
D.byte
第1题:
A.Float
B.char
C.int
D.double
第2题:
若有以下定义:char a;int b;float c;double d;则表达式“a*b+d-c”值的类型为( )。
A.float
B.int
C.char
D.double
第3题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第4题:
若有定义:int x=1,y=2;float a=3.7,b=2.1;则(x+y)%2+(int)a/(int)b表达式的值为( )。
第5题:
A.2.5
B.3.5
C.4.5
D.5.5
第6题:
若有定义语句:“int x=10;”,则表达式x-=x+x的值为( )。
A.-20
B.-l0
C.0
D.10
第7题:
若有定义:floatx=3.5,y=3.6;则表达式()的值为6。
A.(int)x+(int)y
B.x+y
C.(int)(x+y)
D.int(x+y)
第8题:
试题14
若有定义语句:int a=10; double b=3.14; , 则表达式‘A’+a +b值的类型是()
A.char
B.int
C.double
D.float
第9题:
若有定义:int b=7;floata=2.5,c=4.7;则表达式a+(b/2*(int)(a+c)/2)%4的值是()
第10题:
若有byteb=6;shorts=20;则表达式b+s的值的类型是()
第11题:
char
int
double
float
第12题:
-20
-10
0
10
第13题:
若有以下定义: char a: int b; float c; double d; 则表达式a*b+d c的值的类型为 ______。
A.float
B.int
C.char
D.double
第14题:
若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为
第15题:
若有定义语句:“int a=10;double b=3.14;”,则表达式A+a+b值的类型是( )。
A.char
B.int
C.double
D.float
第16题:
若有定义语句:int X=10;,则表达式-x =x+X的值为
A.-20
B.-10
C.0
D.10
第17题:
若有定义语句:int X=10;,则表达式x-=x+x的值为( )。
A.0
B.-20
C.-10
D.10
第18题:
若有以下定义:
char a;int b;
float c;double d;
则表达式a*b+d-c值的类型为( )。
A.A. float
B.int
C.char
D.double
第19题:
若有byte b=6;char c='c';则表达式b+c的值的类型是()。
A.int
B.byte
C.char
D.float
第20题:
设有说明:char w;int x;float y;double z;则表达式w*x+z-y 值的数据类型为().
第21题:
若有intx=10;charc=’d’;则表达式a+c的值的类型是()
第22题:
2.5
3.5
4.5
5.5
第23题:
double
char
int
float