I forgot to return the book to you yesterday. So I()today.
第1题:
-- I'd like to book a flight to Beijing, please.
-- _____.
A. No, you can't
B. Yes, sir, single or return?
C. We are busy.
D. Wait
第2题:
A.Must; needn’t
B.Can; can’t
C.May; mustn’t
D.Can; mustn’t
第3题:
下面程序的结果【 】。
include<iostream.h>
int f(int);
void main() {
int x=1, i;
for (i=0; i<3; i++)
cout<<f(x)<<‘ ’ ;
cout<<end1;
}
int f(int x){
int y=1;
static int z=3
y++;
z++;
return (x+y+z);
}
第4题:
下列程序的输出结果是______。
include<iostream.h>
class base
{
int x,y;
public:
base(int i,int j){x=i;y=j;}
virtual int add( ){return x+y;}
};
class three:public base
{
int z;
public:
three(int i,int j,int k):base(i,j){z=k;)
int add( ){return(base::add( )+z);}
};
void main( )
{
three*q=new three(10,20,30);
cout<<q->add( )<<endl;
}
第5题:
第6题:
I forgot ()an umbrella with me when I left home for work.
Atake
Bto take
Ctaking
Dtook
第7题:
I forgot to return the book to you yesterday. So I()today.
Amight do it
Bmust do it
Chad to do it
Dmust have to do it
第8题:
had returned
returned
would have returned
would return
第9题:
第10题:
check can never return true.
check can return true when setXY is called by multiple threads.
check can return true when multiple threads call setX and setY separately.
check can return true only if SyncTest is changed to allow x and y to be set separately.
第11题:
over
for
on
about
第12题:
200
201
101
102
第13题:
下列程序编译错误,因为add函数返回值是一个引用,故对return后返回值的要求是【 】。
include<iostream. h>
int& add(int x, int y)
{
return x+y;
}
void main( )
int i=3,j=19;
cout<<(add(i,j)+ =20)<<end1;
}
第14题:
It was not long _______ I forgot it all.
A、then
B、when
C、after
D、before
第15题:
以下函数的功能是:求x的y次方,请填空。double fun(double x,int y){ int i; double z; for(i=1,z=x;i<y;i++) z=z*; return z;}
第16题:
有如下程序:
include<iostream>
using namespace std;
int fun1(int x) {return++x;}
int fun2(int &x) {return++x;}
int main(){
int x=1,y=2;
y=fun 1(fun2(x));
cout<<X<<','<<y;
return 0:
}
程序的输出结果是______。
第17题:
第18题:
After()the shopping list, I found that I forgot to buy salt.
Aexamining
Btesting
Cchecking
Dseeing
第19题:
考虑下面的函数: int min(int x,int y){return x
第20题:
take
to take
taking
took
第21题:
might do it
must do it
had to do it
must have to do it
第22题:
on condition that
in condition that
with condition that
in any condition
第23题:
must
mustn’t
can
can’t
第24题:
Check() can never return true.
Check() can return true when setXY is called by multiple threads.
Check() can return true when multiple threads call setX and setY separately.
Check() can only return true if SyncTest is changed to allow x and y to be set separately.