参考答案和解析
正确答案:
Five.
更多“How many people were there in Anna's family? ________________________. ”相关问题
  • 第1题:

    下列程序段: String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); 的结果为

    A.false

    B.true

    C.1

    D.0


    正确答案:B

  • 第2题:

    下列语句输出结果为( )。 public class test { public static void main(StringArgsl[]) { String s1=new String("How"); String s2=new String("How"); System.out.println(!(s1==s2)); } }

    A.false

    B.true

    C.1

    D.0


    正确答案:B

  • 第3题:

    有如下类定义: class Point{ private: static int how_many; }; ___________how_many=0; 要初始化Point类的静态成员how_many,下画线处应填入的内容是( )。

    A.int

    B.static int

    C.int Point::

    D.static int Point::


    正确答案:C
    本题考查静态数据成员,静态数据成员可以初始化,但只能在类体外进行初始化,其一般形式为:数据类型类名::静态数据成员名=初值。所以本题答案为C。

  • 第4题:

    有如下类定义: class Point{ private: static int how_many; }; ______how_many=0; 要初始化Point类的静态成员how_many,下划线处应填入的内容是

    A.int

    B.static int

    C.int Point: :

    D.static int Point


    正确答案:C
    解析:static int n;是定义静态全局变量,int point是定义类的。

  • 第5题:

    下列语句输出结果为( )。public class test{public static void main(String args []){String s1=new String("How");String s2=new String("How");System.out.println(!(s1 ==s2));}

    A.false

    B.true

    C.1

    D.0


    正确答案:B

  • 第6题:

    Examine the following options, Multicasting supports applications that communicate.()

    A. many - to - one

    B. one - to - one

    C. one - to - many

    D. many - to - many


    参考答案:C