有如下定义:float a=1.0f;double b=2.0;则表达式a+b的值的数据类型为()。
A.float
B.double
C.char
D.int
第1题:
设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )
A.2.5
B.3.5
C.4.5
D.表达式不正确
第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+d-c值的类型为
第4题:
若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。
A. float
B.int
C.char
D.double
第5题:
有如下定义 int a; float f; double i; 则表达式4+‘a’+i*f的值的数据类型是 ______。
A.int
B.float
C.double
D.不确定
第6题:
设有以下变量定义,并已赋确定的值: char w; int x; float y; double z; 则表达式:w*x+z-y所求得的数据类型为( )。
A.char
B.int
C.float
D.double
第7题:
若有定义语句:int a=10;double b=3.14;,则表达式'A'+a+b值的类型是
A.char
B.int
C.double
D.float
第8题:
有如下定义:float a=3.14f;byte b=3;则表达式a+b的值的数据类型为( )。
A.byte
B.int
C.char
D.float
第9题:
若有说明:char w; int x; float y; double z; 则表达式w*x+y-z的值的数据类型是()。
第10题:
有如下定义:inta=1;byteb=2;则表达式a+b的数据类型为()
第11题:
float
double
char
int
第12题:
double
char
int
float
第13题:
设变量a是 int 型,f是 double 型,i是 float 型,则表达式10+'a'+i*f值的数据类型
A.int
B.float
C.double
D.不确定
第14题:
设变量a是int型,f是double型,i是float型,则表达式10+'a'+i * f值的数据类型是
A.int
B.float
C.double
D.不确定
第15题:
设变量a是int型,f是int型,i是double型,则表达式10+a+i*f值的数据类型为A.int B.float C.double D.不确定
第16题:
设有定义nit a:float f; double int i,则表达式10+'a'+i+f值的数据类型是( )
A.int
B.float
C.double
D.不确定
第17题:
设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.double D.不确定
第18题:
若有以下定义:
char a;int b;
float c;double d;
则表达式a*b+d-c值的类型为( )。
A.A. float
B.int
C.char
D.double
第19题:
有如下定义:int a=1;byte b=2;则表达式a+b的数据类型为()。
A.int
B.byte
C.char
D.long
第20题:
关于类型转换的说法中,错误的是( )。
A.如果a为血型变量,b为char型变量,则a+b的值为血型
B.如果a为float型变量,b为int型变量,则a-b的值为float型
C.如果a为double型变量,b为float型变量,则a*b的值为double型
D.如果a为血型变量,b为血型变量,则a/(double)b的值为int型
第21题:
设有说明:char w;int x;float y;double z;则表达式w*x+z-y 值的数据类型为().
第22题:
有如下定义:floata=3.14f;byteb=3;则表达式a+b的值的数据类型为()
第23题:
byte
int
char
float