网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
在Java语言中,已知a为int型,b为double型,c为float型,d为char型,则表达式a+bc-d/a的结果类型为()。
- A、int
- B、double
- C、float
- D、char
参考答案
更多 “在Java语言中,已知a为int型,b为double型,c为float型,d为char型,则表达式a+bc-d/a的结果类型为()。A、intB、doubleC、floatD、char” 相关考题
考题
若有以下定义: 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
考题
下列对于二元算术运算表达式的说法中,正确的一个是______。A.若两个操作数都是float型,则表达式结果为float型B.若两个操作数都是float型,则表达式结果为double型C.若一个操作数是float型,另一个操作数是double型,则表达式结果为float型D.若一个操作数是float型,另一个操作数是血型,则表达式结果为int型
考题
自动类型转换规定的优先次序是( )。A.short,byte,char→long→int→float→doubleB.short,byte,char→int→long―float→doubleC.byte,short,char→long→int→float→doubleD.byte,short,char→int→long→float→double
考题
设有以下变量定义,并已赋确定的值: char w; int x; float y; double z; 则表达式:w*x+z-y所求得的数据类型为( )。A.charB.intC.floatD.double
考题
若有以下定义: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
考题
关于类型转换的说法中,错误的是( )。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型
考题
在java中下列关于自动类型转换说法正确的是()A、基本数据类型和String相加结果一定是字符串型B、char类型和int类型相加结果一定是字符型C、double类型可以自动转换为intD、char+int+double+""结果一定是double
考题
设x为float型变量,y为double型变量,a为int型变量,b为long型变量, c为char型变量,则表达式x+y*a/x+b/y+c的值为()类型。A、intB、longC、doubleD、char
考题
在C语言中(以16为PC机为例),5种基本数据类型的存储空间长度的排列顺序为()。A、char int long int = float doubleB、char = int long int = float doubleC、char int long int = float = doubleD、char = int = long int = float double
考题
单选题设x为float型变量,y为double型变量,a为int型变量,b为long型变量,c为char型变量,则表达式x+y*a/x+b/y+c的值为()类型。A
intB
longC
doubleD
char
考题
单选题在Java语言中,已知a为int型,b为double型,c为float型,d为char型,则表达式a+bc-d/a的结果类型为()。A
intB
doubleC
floatD
char
热门标签
最新试卷