网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}
- A、byte
- B、short
- C、int
- D、double
参考答案
更多 “有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}A、byteB、shortC、intD、double” 相关考题
考题
publicclassreturnIt(2.returnTypemethodA(bytex,doubley)(3.return(short)x/y*2;4.)5.)WhatisthevalidreturnTypeformethodAinline2?()
A.IntB.ByteC.LongD.ShortE.FloatF.Double
考题
publicclassReturnIt{2.returnTypemethodA(bytex,doubley){3.return(long)x/y*2;4.}5.}WhatisthenarrowestvalidreturnTypeformethodAinline2?()
A.intB.byteC.longD.shortE.floatF.double
考题
publicclassreturnIt(returnTypemethodA(bytex,doubley)(return(short)x/y*2;))WhatisthevalidreturnTypeformethodAinline2?()
A.IntB.ByteC.LongD.ShortE.FloatF.Double
考题
在下列方法的定义中,正确的是 ( )A.public double x(){..;return false;}B.public static int x(double y){...}C.void x(doubled){...;return d}D.public static x(double a){..}
考题
有以下函数定义: int mypr(double a,double b) { return a*b; } 若以下选项中所用变量都已正确定义并赋值,错误的函数调用是A.if(mypr(x,y)){……}B.z=mypr(mypr(x,y),mypr(x,y));C.z=mypr(mypr(x,y)x,y);D.mypr(x,y);
考题
已知一个函数的定义如下:double fun(int x,double y){⋯⋯}则该函数正确的函数原型声明为()A、double fun(intx,doubley)B、fun(int x,doubley)C、double fun(int,double);D、fun(x,y);
考题
1. public class ReturnIt { 2. return Type methodA(byte x, double y) { 3. return (long)x / y * 2; 4. } 5. } What is the narrowest valid returnType for methodA in line2?() A、 intB、 byteC、 longD、 shortE、 floatF、 double
考题
有以下方法的定义,请选择该方法的返回类型()。 ReturnType method(byte x, double y){ return (short)x/y*2;}A、byteB、shortC、intD、double
考题
______methodA(bytex,doubley){?return(short)x/y*2;?}下划线上应填写的关键字是()A、byteB、doubleC、shortD、float
考题
有以下方法的定义,ReturnTypemethod(bytex,floaty){return(short)x/y*2;}请选择该方法的返回类型()。A、byteB、shortC、intD、float
考题
1. public class returnIt ( 2. returnType methodA(byte x, double y) ( 3. return (short) x/y * 2; 4. ) 5. ) What is the valid returnType for methodA in line 2?() A、 IntB、 ByteC、 LongD、 ShortE、 FloatF、 Double
考题
1. public class ReturnIt { 2. return Type methodA(byte x, double y) { 3. return (short)x / y * 2; 4. } 5. } What is the narrowest valid returnType for methodA in line2?() A、 intB、 byteC、 longD、 shortE、 floatF、 double
考题
public class returnIt ( returnType methodA(byte x, double y) ( return (short) x/y * 2; ) ) What is the valid returnType for methodA in line 2?()A、 IntB、 ByteC、 LongD、 ShortE、 FloatF、 Double
考题
单选题______methodA(bytex,doubley){?return(short)x/y*2;?}下划线上应填写的关键字是()A
byteB
doubleC
shortD
float
考题
单选题1. public class returnIt ( 2. returnType methodA(byte x, double y) ( 3. return (short) x/y * 2; 4. ) 5. ) What is the valid returnType for methodA in line 2?()A
IntB
ByteC
LongD
ShortE
FloatF
Double
考题
单选题有以下方法的定义,请选择该方法的返回类型()。 ReturnType method(byte x, double y){ return (short)x/y*2;}A
byteB
shortC
intD
double
考题
单选题有以下方法的定义,ReturnTypemethod(bytex,floaty){return(short)x/y*2;}请选择该方法的返回类型()。A
byteB
shortC
intD
float
考题
单选题1. public class ReturnIt { 2. return Type methodA(byte x, double y) { 3. return (short)x / y * 2; 4. } 5. } What is the narrowest valid returnType for methodA in line2?()A
intB
byteC
longD
shortE
floatF
double
考题
单选题1. public class ReturnIt { 2. return Type methodA(byte x, double y) { 3. return (long)x / y * 2; 4. } 5. } What is the narrowest valid returnType for methodA in line2?()A
intB
byteC
longD
shortE
floatF
double
考题
单选题有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}A
byteB
shortC
intD
double
考题
单选题public class returnIt ( returnType methodA(byte x, double y) ( return (short) x/y * 2; ) ) What is the valid returnType for methodA in line 2?()A
IntB
ByteC
LongD
ShortE
FloatF
Double
热门标签
最新试卷