Which of the following statements are legal?() A、 long l = 4990;B、 int i = 4L;C、 float f = 1.1;D、 double d = 34.4;E、 double t = 0.9F;
Which of the following statements are legal?()
- A、 long l = 4990;
- B、 int i = 4L;
- C、 float f = 1.1;
- D、 double d = 34.4;
- E、 double t = 0.9F;
相关考题:
( 18 )字面常量 42 、 4.2 、 42L 的数据类型分别是A ) long 、 double intB ) long 、 float 、 intC ) int 、 double 、 longD ) int 、 float 、 long
Whichofthefollowingstatementsarelegal?() A.longl=4990;B.inti=4L;C.floatf=1.1;D.doubled=34.4;E.doublet=0.9F;
下面各选项中正确的是( )。 Ⅰ: long 1 = 4990 Ⅱ: int i = 4L Ⅲ: float f=1.1 Ⅳ: double d=4A.Ⅱ、ⅢB.Ⅱ、Ⅲ、ⅣC.Ⅰ、ⅣD.Ⅲ、 Ⅳ
C语言中各种基本数据类型的存储空间长度排列为( )A.char≤long≤int≤float≤doubleB.double≤float≤long≤int≤charC.char≤int≤long≤float≤doubleD.float≤int≤long≤char≤double
自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。A.byte, short, char→int→long→float→doubleB.float→int→long→byte, short, char→doubleC.int→long→float→double→byte, short, charD.double→int→float→long→byte, short, char
字面常量42、4.2、42L的数据类型分别是( )。 A.long,double、intB.lon9、float、int 字面常量42、4.2、42L的数据类型分别是( )。A.long,double、intB.lon9、float、intC.int、double、longD.int、float、long
设有定义:char c;float f;int i;unsignedu;double d;下列各表达式的类型分别是()1.u+92.d!=f&&(i+2)3.8.2*i+c A.1.unsigned,2.int,3.doubleB.1.double,2.double,3.doubleC.1.int,2.double,3.charD.1.unsigned,2.double,3.int
以下正确的函数定义是______。A.double f1(int x,int y)B.double f1(int x;int y)C.double f1(int x;float y)D.double f1(int x,y)
自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。A.byte,short,char→int→long→float→doubleB.float→int→long→byte,short,char→doubleC.int→long→float→double←byte,short,charD.double→int→folat→long→byte,short,char
设有定义:char c;float f;int i;unsignedu;double d;下列各表达式的类型分别是()1.u+92.d!=f(i+2)3.8.2*i+cA、1.unsigned,2.int,3.doubleB、1.double,2.double,3.doubleC、1.int,2.double,3.charD、1.unsigned,2.double,3.int
Given: Integer i = new Integer (42); Long l = new Long (42); Double d = new Double (42.0); Which two expression evaluate to true?()A、 (i = = l)B、 (i = = d)C、 (d = = l)D、 (i.equals(d))E、 (i.equals(i))F、 (i.equals(42))
Which of the following assignment is not correct?() A、 float f = 11.1;B、 double d = 5.3E12;C、 double d = 3.14159;D、 double d = 3.14;.
变量x、f、d分别为int,float,double类型的,除了f和d不能等于无穷大和NAN以外值可以任意选取,下面表达式为真的是()A、x==(int)(double)xB、x==(int)(float)xC、d==(double)(float)dD、(f+d)-f==d
假定变量x,f和d的类型分别为int 、float和double。下面表达式的值总是为1的是()A、x==(int)(float)xB、d==(double)(float)dC、f==(float)(double)fD、(f+d)-f==d
单选题假定变量x,f和d的类型分别为int 、float和double。下面表达式的值总是为1的是()Ax==(int)(float)xBd==(double)(float)dCf==(float)(double)fD(f+d)-f==d
多选题Given: Integer i = new Integer (42); Long l = new Long (42); Double d = new Double (42.0); Which two expression evaluate to true?()A(i = = l)B(i = = d)C(d = = l)D(i.equals(d))E(i.equals(i))F(i.equals(42))
多选题Which of the following statements are legal?()Along l = 4990;Bint i = 4L;Cfloat f = 1.1;Ddouble d = 34.4;Edouble t = 0.9F;
单选题Which of the following assignment is not correct?()A float f = 11.1;B double d = 5.3E12;C double d = 3.14159;D double d = 3.14;.
( 难度:中等)下面的哪些声明是合法的?( )A.long l = 499B.int i = 4LC.float f =1.1D.double d = 34.4E.String = ""