问题 填空题

以下程序的输出结果是【 】。int fun(int *x,int n) {if(n=0) return x[0];elsereturn x[0]+fun(x+1,n-1);}main( ){int a[]={1,2,3,4,5,6,7};printf("%d\n",fun(a,3));}

答案

参考答案:J

解析:本题考查的是函数的递归调用。在调用一个函数的过程中又直接或间接的调用该函数本身。第一次调用时,指针x指向的是a[0],n的值为3,每调用一次n自减1,x加1,指向数组a中的下一个元素,当n为0时函数开始返回,最后的返回值等于a[0]+a[1]+a[2]+a[3]=10。

完形填空

第三节 完形填空(共20小题,每小题1.5分,满分 30分)

从A、B、C、D中选出最佳选项:

As the pace of life continues to increase, we are fast losing the art of relaxation. 21  you are in the habit of rushing through life, being on the go from morning till night, it is hard to  22   down. But relaxation is  23   for a healthy mind and body.

Stress is a  24   part of everyday life and there is no way to  25  it. In fact, it is not the bad thing that it is often supposed to be. A  26  amount of stress is important to provide motivation and give  27  to life. It is only when the stress gets out of control  28  it can lead to poor performance and  29  health.

The amount of stress a person can bear  30  very much on the individual. Some people are not afraid of stress, and such  31  are obviously chief material for managerial.(管理的) responsibilities. Other people lose heart at first  32  of unusual difficulties. When exposed to stress, in  33 form , we react both physically and mentally. In fact we make a choice between “34  and fight”. And in more ancient days the choices made the  35  between life and death. The crisis we meet today are  36  to be so extreme, but however little the stress is, it requires the same response. It is when such a reaction  37  a long time, through continued exposure to stress, that health becomes  38  . Such serious conditions as high blood pressure and heart disease have established links with stress. 39  we cannot remove stress from our lives, we need to find ways to deal with it.

So what do you think of  40  ? What is your way to deal with it?

21.A.When           B.While               C.Once              D.As

22.A.slow             B.calm                 C.get                 D.turn

23.A.unnecessary     B.satisfied            C.useful             D.necessary

24.A.physical        B.natural              C.hard               D.terrible

25.A.tolerate         B.solve                C.avoid              D.accept

26.A.sure              B.certain              C.large               D.great

27.A.purpose         B.resource            C.influence         D.instruction

28.A.when           B.why                 C.that                D.how

29.A.ill                 B.good                C.strong             D.weak

30.A.insists           B.depends            C.calls               D.spends

31.A.patterns         B.personalities      C.situations        D.characters

32.A.glance           B.view                 C.sight               D.impression

33.A.whichever     B.whatever           C.however          D.whenever

34.A.peace            B.fright               C.pressure          D.heaviness

35.A.decision        B.promise            C.difference       D.choice

36.A.unlikely        B.likely               C.necessary        D.probable

37.A.continues      B.lives                 C.stands             D.lasts

38.A.balanced       B.injured             C.endangered      D.changeable

39.A.Unless          B.Since                C.Because          D.As

40.A.stress            B.relaxation         C.ways               D.exposure

单项选择题 案例分析题