网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
设执行下面的赋值语句:a=Float,valueOf("34").floatValue()后,a的值是 ( )
A.a="12.34"
B.a=12.34
C.a=1234
D.a=12
参考答案
更多 “ 设执行下面的赋值语句:a=Float,valueOf("34").floatValue()后,a的值是 ( )A.a="12.34"B.a=12.34C.a=1234D.a=12 ” 相关考题
考题
(23)设有数组定义语句:Dim a(5)As Integer,并设List1为列表框控件。下列给数组元素赋值的语句错误的是A.a(3)=3 B.a(3)=inputbox("inputdata") C.a(3)=List1.ListIndex D.a=Array(1,2,3,4,5,6)
考题
Youneedtostoreafloatingpointnumber,calledTsquare,inthesessionscope.Whichtwocodesnippetsallowyoutoretrievethisvalue?()
A.floatTsquare=session.getFloatAttribute(Tsquare);B.floatTsquare=(Float)session.getAttribute(Tsquare);C.floatTsquare=(float)session.getNumericAttribute(Tsquare);D.floatTsquare=((Float)session.getAttribute.(Tsquare)).floatValue();E.floatTsquare=((Float)session.getFloatAttribute.(Tsquare)).floatValue;
考题
设整型变量 a=2,则执行下列语句后,浮点型变量b的值不为 0.5的是( )。
A. b= 1.0/aB. b=(float)(1/a)C. b=1/(float)aD. b=1/(a* 1.0)
考题
假设变量intVar为一个整型变量,则执行赋值语句intVar="2"+3之后,变量intVar的值与执行赋值语句 intVar="2"+"Y'之后,变量intVar的值分别是【 】。
考题
设执行下面的赋值语句: A=Float.valueOf("12.34").floatValue(); 后,a的值是( )。A.a="12.34"B.a=12.34C.a=1234D.a=12
考题
在Visual FoxPr0中有如下内存变量的赋值语句:X={2008—08—08 8:00:00 AM,}Y=.y.Z=“12.34”执行上述语句之后,内存变量的X、Y、Z的数据类型为( )。
考题
若变量a是int类型,并执行了语句:a='A'+1.6;则正确的叙述是( )。A.a的值是字符'C'B.a的值是浮点型C.不允许字符型和浮点型相加D.a的值是字符'A'的ASCII码值加上1
考题
floatf;Strings;现需要把float转化为String,正确的语句是()A、s=String.valueOf(f);B、f=Float.parseFloat(s);C、s=f;D、s=(String)f;
考题
You need to store a floating point number,called Tsquare,in the session scope. Which two code snippetsallow you to retrieve this value?()A、float Tsquare = session.getFloatAttribute("Tsquare");B、float Tsquare = (Float) session.getAttribute("Tsquare");C、float Tsquare = (float) session.getNumericAttribute("Tsquare");D、float Tsquare = ((Float) session.getAttribute.("Tsquare")).floatValue();E、float Tsquare = ((Float) session.getFloatAttribute.("Tsquare")).floatValue;
考题
单选题floatf;Strings;现需要把float转化为String,正确的语句是()A
s=String.valueOf(f);B
f=Float.parseFloat(s);C
s=f;D
s=(String)f;
热门标签
最新试卷