西北工业大学

- Unbelievable! I have failed the driving test again! - _______. This is not the end of the world.A、Good luckB、No problemC、Go aheadD、Cheer up

题目
- Unbelievable! I have failed the driving test again! - _______. This is not the end of the world.

A、Good luck

B、No problem

C、Go ahead

D、Cheer up

如果没有搜索结果,请直接 联系老师 获取答案。
如果没有搜索结果,请直接 联系老师 获取答案。
相似问题和答案

第1题:

If only we______(have)a phone! I'm tired of waiting outside the public phone box.


正确答案:
had[解析] 虚拟语气,要是我们有电话就好了,用过去式。

第2题:

—I'd met Smith several times before.—So (have) ( ) I.


正确答案:had

第3题:

All of us avoidedover the rough road bythe new way.

A.to drive … taking

B.driving … takes

C.driving … being taken

D.driving … taking


参考答案:D

第4题:

有以下程序:include using namespace std;class count{ static int n;public: count

有以下程序: #include <iostream> using namespace std; class count { static int n; public: count ( ) { n++; } static int test() { for (int i = 0; i < 4; i++ ) n++; return n; } }; int count :: n = 0; int main() { cout<<count :: test()<<" "; count c1, c2; cout<<count :: test()<<end1; return 0; } 执行后的输出结果是( )。

A.4 10

B.1 2

C.22

D.24


正确答案:A
解析:程序首先定义了类count,其内部含有private类型数据成员“staticintn;”,同时含有public类型构造函数count()和静态成员函数staticinttest(),这两个函数的功能分别是为对象申请系统资源并将静态数据成员n加1和将静态数据成员n加4。主函数前,程序将静态数据成员n初始化为0,该数据成员为所有类count的对象所共有的数据成员。主函数中,程序首先执行静态成员函数test()(由于test声明为static,因此其调用时无需通过具体对象)。而其执行过程中,静态数据成员n应该加4变成n=4,因此此处输出为4。此后程序创建对象c1和c2,由于在每次创建过程中都要调用构造函数count(),而每次调用count()函数后,静态数据成员n值都会加1,因此,创建两个对象之后,n值变为n=6;再次执行test()函数后,n的值再次加4,此时变为n=6+4=10。故程序全部执行后,变量n值变为10,而中间程序输出为“410”。

第5题:

Which of the following is can express “uncertainty”().

A.You said it

B.What a shame

C.I rather doubt it

D.Unbelievable, I’d say


答案:C

解析:原题题意为下列哪项可以表示“不确定性”,A意为你说过的;表示肯定,B意为多么遗憾啊,表示感叹;C意为我很怀疑,表示不确定性;D意为我觉得难以相信,表示对此事表示感叹,肯定不相信;故选C

第6题:

-Would you like to go to the cinema?

-I'd _____to go to the museum.

A. rather

B. Prefer

C. have


参考答案:B

第7题:

I used to () on the left in England, but I soon got used to () on the right in America.

A、be driven…driving

B、driving…drive

C、have driven…drive

D、drive…driving


参考答案:D

第8题:

下面程序的运行结果是【】。 inChlde using namespace std; class count { static int n;

下面程序的运行结果是【 】。

inChlde<iOStream>

using namespace std;

class count

{

static int n;

public:

count()

{

n++;

}

static int test()

{

for(int i=0:i<4;i++)

n++;

return n;

}

};

int count::n=0;

int main()

{

cout<<COUnt::test()<<" ";

count c1, c2;

cout<<count::test()<<end1;

return 0;

}


正确答案:4 10
4 10 解析:本题主要考查C++类中静态数据成员的使用。题目程序首先定义了类count,其内部含有private类型数据成员static int n;同时含有public类型构造函数count()和静态成员函数static int test(),这两个函数的功能分别是为对象申请系统资源并将静态数据成员n加1和将静态数据成员n加4。主函数前,程序将静态数据成员n初始化为0,该数据成员为所有类count的对象所共有的数据成员:主函数中程序首先执行静态成员函数test()(由于test声明为static,因此其调用时无需通过具体对象),其执行过程中,静态数据成员n应该加4变成n=4,因此此处输出为4:此后程序创建对象c1和c2,由于在每次创建过程中都要调用构造函数count(),而每次调用 count()函数后,静态数据成员n值都会加1因此,创建两个对象之后,n值变为n= 6:再次执行test()函数后,n的值再次加4,因此变为n=6+4=10。故程序全部执行后,变量n值变为10,而中间程序输出为“410”。

第9题:

使用VC6打开考生文件夹下的工程test37_1,此工程包含一个源程序文件test37_1.cpp,但该程序运行有问题,请改正函数中的错误,使该程序的输出结果为:

0149 16 25 36 49 64 81

源程序文件test37_1.cpp清单如下:

include<iostream.h>

template <class T, int N = 100> class Vector

{

T vec[N];

public:

void set(int pos, T val);

T get(iht pos);

/***************** found *****************/

}

template <class T, int N> void Vector<T, N>::set(int pos, T val)

{

vec[pos] = val;

}

/***************** found *****************/

template <class T, int N> Vector<T, N>::get(int pos)

{

return vec[pos];

}

int main ()

{

Vector<double, 10> v;

int i = 0;

double d = 0.0;

for (i = 0; i < 10; i++)

v.set(i, double(i * i));

for (i = 0; i < 10; i++)

cout<<v.get(i)<<" ";

cout<<end1;

/***************** found *****************/

}


正确答案:(1) 错误:} 正确:}; (2) 错误:templateclass Tint N>VectorTN>::get(int pos) 正确:templateclass Tint N>T VectorTN>::get(int pos) (3) 错误:缺少返回值 正确:加入 return 0;
(1) 错误:} 正确:}; (2) 错误:templateclass T,int N>VectorT,N>::get(int pos) 正确:templateclass T,int N>T VectorT,N>::get(int pos) (3) 错误:缺少返回值 正确:加入 return 0; 解析:(1)主要考查考生对于类定义的理解,即使使用了类模板,在类定义的结尾仍然需要使用分号,这是C++的规定;
(2)主要考查考生是否会掌握了模板类的定义,template是关键字,在0中间是类型的定义,题目中Vector是一个类的名称,前面应该有该模板的名称,即T,这样才是完整的定义;
(3)主要考查考生对于函数返回值的掌握,任何返回值类型不为int型的函数最后都必须使用returen语句返回对应类型的值,就算是main函数也不例外。

第10题:

下列 Python语句的运行结果为 for i in range (3): print(i, end='') for i in range(2, 5): print(i, end='')


012234