参考答案和解析
正确答案:D
更多“111Using the figure in the Special window, By how many weeks can activity "F" slip without ”相关问题
  • 第1题:

    ● Using the figure in the Special window, Activity "D" has a latest start time of _____ weeks and a latest finish time of _____ weeks.

    A 2, 10

    B 4, 12

    C 6, 14

    D 7, 15

    E 9, 17


    正确答案:A

  • 第2题:

    有如下类定义: 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

  • 第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
    解析:static int n;是定义静态全局变量,int point是定义类的。

  • 第4题:

    ● Using the figure in the Special window, Activity "L" has an early start time of _____ weeks and an early finish time of _____ weeks.

    A 11, 13

    B 12, 14

    C 13, 15

    D 14, 16

    E 15, 17


    正确答案:E

  • 第5题:

    有如下类定义:\nclassPoint{\nprivate;\nstaticinthow_many;\n};\n___________how_many=0;\n要初始化Point类的静态成员how_many,下划线处应填入的内容是

    A、ing

    B、staticint

    C、intPoint::

    D、staticintPoint::


    参考答案:D

  • 第6题:

    有如下类定义: 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。