类testl定义如下: public class test1 { public float amethod(float a,float b){ } }A.public foat amethod(float a,float b,foat c){ }B.public float amethod(float c,float d){ }C.public int amethod(int a,int b){ }D.private float amethod(int a,int b,int c){ }

题目

类testl定义如下: public class test1 { public float amethod(float a,float b){ } }

A.public foat amethod(float a,float b,foat c){ }

B.public float amethod(float c,float d){ }

C.public int amethod(int a,int b){ }

D.private float amethod(int a,int b,int c){ }


相似考题
更多“类testl定义如下: public class test1 { public float amethod(float a,float b){ } }A.public f ”相关问题
  • 第1题:

    假定变量i,f的数据类型分别是int、float。已知i=12345,f=1.2345e3,则在一个32位机器中执行如下表达式,结果为假的是

    A.i==(int)(float)i

    B.i==(int)(double)i

    C.f==(float)(int)f

    D.f==(float)(double)f


    B

  • 第2题:

    下列程序段执行结果是___________。 x = 1 print(type(x)) x = 1.0 print(type(x)) x = '1.0' print(type(x)

    A.<class 'int'> <class 'float'> <class 'str'>

    B.<class 'float'> <class 'int'> <class 'str'>

    C.<class 'str'> <class 'float'> <class 'int'>

    D.<class 'str'> <class 'int'> <class 'float'>


    C.循环执行1次

  • 第3题:

    【单选题】要定义一个3行4列的单精度型二维数组f,使用的定义语句为()

    A.float[ ] f=new float[3,4];

    B.float f[,]=new float[3,4];

    C.float[,] f=new float[3,4];

    D.float[,] f=new float[,];


    float[,] f=new float [3,4];

  • 第4题:

    00330038003000301585067361821下列程序段执行结果是___________。 x = 1 print(type(x)) x = 1.0 print(type(x)) x = '1.0' print(type(x)

    A.<class 'int'> <class 'float'> <class 'str'>

    B.<class 'float'> <class 'int'> <class 'str'>

    C.<class 'str'> <class 'float'> <class 'int'>

    D.<class 'str'> <class 'int'> <class 'float'>


    A

  • 第5题:

    下面创建数组的语句错误的是()。

    A.float[][] f = new float[6][6]; 

    B.float[] f = new float[6];

    C.float[][] f = new float[][6]; 

    D.float[][] f=new float[6][];


    int[] array = new int[3] {1,2};

  • 第6题:

    用于定义类成员的访问控制权的一组关键字是()

    A.class, float, double, public

    B.float, boolean, int, long

    C.char, extends, float, double

    D.public, private, protected


    public, private, protected