A、on
B、up
C、in
D、off
第1题:
I, my, will, true, come, hope, dream
__________________________________________________________________________.
第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)等价
第3题:
-- Ann is in hospital.
-- Oh, really? I __ know. I __ go and visit her.
A. didn’t; am going to B. don’t; would
C. don’t; will D. didn't; will
第4题:
下列程序的输出结果是【 】。
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<<'.';
}
第5题:
类MyClass的定义如下,若要对value赋值,则下面语句正确的是( )。 classMyClass { public: MyClass( ){} MyClass(inti){value=newint(i);} int*value; };
A.MyClassmy;my.value=10;
B.MyClassmy;*my.value=10;
C.MyClassmy;my.*value=10;
D.MyClassmy(10);
第6题:
对不起,我那位闲不住的老板让我即刻就走! I’m so sorry. My _____ boss asks me to leave right now.