niusouti.com
更多“I, my, will, true, come, hope, dream _________________________________________________ ”相关问题
  • 第1题:

    2.I _________to visit Guilin and I_________ you to go with me.

    A. wish ; hope

    B. hope; wish

    C. hope; wish for

    D. wish; hope that


    正确答案:B
    2.B【解析】wish与hope后都可接to do作宾语, hope后不可以跟宾语再加to do。

  • 第2题:

    类MyClass的定义如下: class MyClass { public: MyClass(){value=0;} SetVariable(int i){value=i;) private: int value; }; 则对下列语句序列正确的描述是( )。

    A.MyClass*p,my;p=&my;

    B.语句p=&my;是把对象my赋值给指针变量p

    C.语句MyClass*p,my;会调用两次类MyClass的构造函数

    D.对语句*p.SetV ariable(5)与语句my.SetVariable(5)等价


    正确答案:D

  • 第3题:

    对于如下程序段,何时执行后的结果为true? if(i=0) printf("true"); else printf("false");

    A.总是

    B.绝不会

    C.当i为0时

    D.当i不为0时


    5

  • 第4题:

    下列程序的输出结果是【 】。 includeclass MyClass{public: int number; void set(in

    下列程序的输出结果是【 】。

    include<iostream. h>

    class MyClass

    {

    public:

    int number;

    void set(int i);

    };

    int number=3;

    void MyClass: :set (int i)

    {

    number=i;

    }

    void main( )

    {

    MyClass my1;

    int number=10;

    my1.set(5),

    cout<<my1, number<<',';

    my1.set(number);

    cout<<my1.number<<',';

    my1.set(: :number);

    cout<<my1.number<<'.';

    }


    正确答案:5103
    5,10,3 解析:本题考查全局变量,局部变量和类的数据成员之间的使用上的差别。使用全局变量时需要用域作用符来限定该变量,否则编译器无法正确区分。

  • 第5题:

    中国青少年发展基金会在网上的主页地址是()。

    A.http://project-hopE.cydF.gov.cn

    B.http://project-hopE.cydF.ac

    C.http://project-hopE.cydF.edu.cn

    D.http://project-hopE.cydF.com.cn


    参考答案:C