网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)

有如下定义:float a=3.14f;byte b=3;则表达式a+b的值的数据类型为( )。

A.byte

B.int

C.char

D.float


参考答案

更多 “ 有如下定义:float a=3.14f;byte b=3;则表达式a+b的值的数据类型为( )。A.byteB.intC.charD.float ” 相关考题
考题 若有以下定义:char a;int b;float c; double d;则表达式a*b+d-c值的类型为【12】 。

考题 若有定义:int a=4,b=5;float x=3.4,y=2.1;,则下列表达式的值为( )(float) (a+b)/2+(int)×%(int)yA.5.5B.55C.5.500000D.55.00000

考题 设有说明:charm;intx;floaty;doublez;则表达式m*x+z-y值的数据类型为float。() 此题为判断题(对,错)。

考题 若有以下定义: char a: int b; float c; double d; 则表达式a*b+d c的值的类型为 ______。A.floatB.intC.charD.double

考题 设有如下变量定义: double a=3.500000;float b=2.5; int m=2,n=3; 则表达式“(float)(m+n)/2+(int)a%(int)b”的值是( )A.2.5B.3.5C.4.5D.表达式不正确

考题 若有以下定义:char a;int b;float c;double d;则表达式“a*b+d-c”值的类型为( )。A.floatB.intC.charD.double

考题 若有以下定义char a;int b;float c;double d;则表达式a*b+d-c值的类型为

考题 若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatSX 若有以下定义: char a;int b; float c;double d; 则表达式a*b+b-c值的类型为( )。A. floatB.intC.charD.double

考题 有如下定义 int a; float f; double i; 则表达式4+‘a’+i*f的值的数据类型是 ______。A.intB.floatC.doubleD.不确定

考题 若有定义:int a=4, b=5;float x=3.4,y=2.1;,则下列表达式的值为( )。 (float) (a+b)/2+(int)x%(int)yA.5.5B.55C.5.5D.55

考题 设变量a是int型,f是float型,i是double型,则表达式10+′a′+i*f值的数据类型为A.int B.float C.double D.不确定

考题 若有如下定义: int x=3,y=2,Z; 则表达式Z=X/y*3.0的值是( )。A.2B.2C.3D.3

考题 若有定义:int a=2,b=3;float x=3.5,y=2.5;则下面表达式的值为______。(float)(a+b)/2+(int)x%(int)yA.3.5B.35C.3.5D.35

考题 若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. float SXB 若有以下定义:char a;int b;float c;double d;则表达式a*b+d-c值的类型为( )。A.A. floatB.intC.charD.double

考题 若有定义语句:int a=10;double b=3.14;,则表达式'A'+a+b值的类型是A.charB.intC.doubleD.float

考题 有如下表达式19/30*.sqrt(4.0)/5,则该表达式值数据类型为 ______。A.intB.floatC.doubleD.不确定

考题 有如下定义:int a=1;byte b=2;则表达式a+b的数据类型为()。A.intB.byteC.charD.long

考题 若有byte b=6;char c='c';则表达式b+c的值的类型是()。A.intB.byteC.charD.float

考题 若有float f=2.6f;short s=20;则表达式f+s的值的类型是()。A.floatB.shortC.intD.byte

考题 有如下定义:float a=1.0f;double b=2.0;则表达式a+b的值的数据类型为()。A.floatB.doubleC.charD.int

考题 基本数据类型精度从低到高排列正确的是()A.byte short int float doubleB.byte short int double floatC. short byte int float doubleD. short byte int double float

考题 设有如下定义,则执行表达式(nFa>b)(n=c>d)后,n的值为______。 int a=1,b=2,c=3,d=4,m=2,n=2;A.1B.2C.3D.0

考题 若有说明:char w; int x; float y; double z; 则表达式w*x+y-z的值的数据类型是()。A、doubleB、charC、intD、float

考题 有如下定义:inta=1;byteb=2;则表达式a+b的数据类型为()A、intB、byteC、charD、long

考题 有如下定义:floata=3.14f;byteb=3;则表达式a+b的值的数据类型为()A、byteB、intC、charD、float

考题 单选题有如下定义:floata=1.0f;doubleb=2.0;则表达式a+b的值的数据类型为()A floatB doubleC charD int

考题 单选题有如下定义:floata=3.14f;byteb=3;则表达式a+b的值的数据类型为()A byteB intC charD float