methodA(byte x,double y){return (short)x/y*2;}下划线上应填写的关键字是( )。A、byteB、doubleC、shortD、float

methodA(byte x,double y){return (short)x/y*2;}下划线上应填写的关键字是( )。

A、byte

B、double

C、short

D、float


相关考题:

Java语言中数值数据的类型能自动转换,按照从左到右的转换次序为()。A.byte→int→short→long→float→doubleB.byte→short→int→long→float→doubleC.byte→short→int→float→long→doubleD.short→byte→int→long→float→double

publicclassreturnIt(returnTypemethodA(bytex,doubley)(return(short)x/y*2;))WhatisthevalidreturnTypeformethodAinline2?() A.IntB.ByteC.LongD.ShortE.FloatF.Double

有以下程序,请在 处填写正确语句。使程序可正常编译运行。include;mairl();{double x,y,(*p)():scanf(“%If%If”,x,y);P=avg;printf(“%f\n”,(*p)(x,y));}double avg(double a,doublc b){return((a十b/2):

自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。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

下列函数值的类型是( )。 fun(double x) { float y; y=3*x-4; return y; }A.intB.不确定C.voidD.float

下列函数的类型是( )。fun(double x) { float y;y=3*x-4;return y; }A.intB.不确定C.voidD.float

自动类型转换规定的优先次序是( )。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

在同一可访问区内有如下8个函数:①double calculate(double x)②double calculate(double x, double y);③double calculate(double x. int y);④double calculate(int x, double y);⑤double calculate(int x);⑥float calculate(float x);⑦float calculate(double x);⑧float calculate(int x,double y)。那么关于函数重载的说法中,不正确的是(63)。A.②③④⑤中任两个函数均构成重载B.①③构成重载C.②⑧肯定构成重载,⑥⑦也肯定构成重载D.④⑧构成重载

自动类型转换是按优先关系从低级数据转换成高级数据,规定的优先次序是( )。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

假设有函数模板定义如下,下列各选项中正确的是( )。 Template T Max(T a,T b,T 假设有函数模板定义如下,下列各选项中正确的是( )。 Template <class T> T Max(T a,T b,T c) { if(a<b) {if(b<c) return c; else return b;} else {if(a<c) return c; else return a;} }A.float x,y,z;float max;max=Max(x,y,z);B.float x;int y,z;float max;max=Max(x,y,z);C.float x;double y,z;float max;max=Max(x,y,z);D.三个选项都正确

以下代码中变量result的可能类型有哪些?byte b = 11;short s = 13;result = b * ++s; A.byte, short, int, long, float, doubleB.boolean, byte, short, char, int, long, float, doubleC.byte, short, char, int, long, float, doubleD.byte, short, charE.int, long, float, double

(12)有以下程序,请在 【12】 处填写正确语句,使程序可正常编译运行。#include stdio.h【12】 ;main(){ double x,y,(*p)();scanf("%lf%lf",x,y);p=avg;printf("%f\n",(*p)(x,y));}double avg(double a,double b){ return((a+b)/2);}

有以下方法的定义,请选择该方法的返回类型()。ReturnType method(bytex,doubley){return(short)x/y*2;}A、byteB、shortC、intD、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(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

如果定义有double,x;float,y;int,m,则表达式x*y-m的类型为()A、doubleB、floatC、intD、short

有以下方法的定义,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;?}下划线上应填写的关键字是()AbyteBdoubleCshortDfloat

单选题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;}AbyteBshortCintDdouble

单选题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

单选题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