网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
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
考题
下面各项声明中合法的是( )。 Ⅰ:long1=4990; Ⅱ:int i=4L; Ⅲ:floatf=1.1; Ⅳ:double d=34;A.Ⅱ、ⅢB.Ⅱ、Ⅲ、ⅣC.Ⅰ、ⅣD.Ⅲ、Ⅳ
考题
以下正确的函数定义是______。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
考题
字面常量42、4.2、42L的数据类型分别是( )。A.long,double,intB.long,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+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的是()A
x==(int)(float)xB
d==(double)(float)dC
f==(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 = ""
热门标签
最新试卷