吉林大学

I can never forget the day ____ I got the first prize in the competition.A.thatB.whereC.whichD.when

题目

I can never forget the day ____ I got the first prize in the competition.

A.that

B.where

C.which

D.when

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

第1题:

9. —Can you play basketball?

—Yes, I_________ .

A. am

B. do

C. must

D. can


正确答案:D
9.D【解析】由情态动词can进行的提问,也要用 can来回答,故选D.

第2题:

My sister has_____ been to the Summer Palace. I ’m going to take her there.

A.ever

B.sometime

C.never


参考答案:C

第3题:

Lodger: I’m terribly sorry that I broke you precious vase. I’ll pay for it.Landlady:____.

A.Can’t complain

B.Take care

C.Relax yourself

D.Never mind


参考答案:D

第4题:

阅读下列说明和C代码,回答问题 1 至问题 3,将解答写在答题纸的对应栏内。 【说明】 假币问题:有n枚硬币,其中有一枚是假币,己知假币的重量较轻。现只有一个天平,要求用尽量少的比较次数找出这枚假币。 【分析问题】 将n枚硬币分成相等的两部分: (1)当n为偶数时,将前后两部分,即 1...n/2和n/2+1...0,放在天平的两端,较轻的一端里有假币,继续在较轻的这部分硬币中用同样的方法找出假币: (2)当n为奇数时,将前后两部分,即1..(n -1)/2和(n+1)/2+1...0,放在天平的两端,较轻的一端里有假币,继续在较轻的这部分硬币中用同样的方法找出假币;若两端重量相等,则中间的硬币,即第 (n+1)/2枚硬币是假币。 【C代码】 下面是算法的C语言实现,其中: coins[]: 硬币数组 first,last:当前考虑的硬币数组中的第一个和最后一个下标 include <stdio.h> int getCounterfeitCoin(int coins[], int first,int last) { int firstSum = 0,lastSum = 0; int ì; If(first==last-1){ /*只剩两枚硬币*/ if(coins[first] < coins[last]) return first; return last; } if((last - first + 1) % 2 ==0){ /*偶数枚硬币*/ for(i = first;i <( 1 );i++){ firstSum+= coins[i]; } for(i=first + (last-first) / 2 + 1;i < last +1;i++){ lastSum += coins[i]; } if( 2 ){ Return getCounterfeitCoin(coins,first,first+(last-first)/2;) }else{ Return getCounterfeitCoin(coins,first+(last-first)/2+1,last;) } } else{ /*奇数枚硬币*/ For(i=first;i<first+(last-first)/2;i++){ firstSum+=coins[i]; } For(i=first+(last-first)/2+1;i<last+1;i++){ lastSum+=coins[i]; } If(firstSum<lastSum){ return getCounterfeitCoin(coins,first,first+(last-first)/2-1); }else if(firstSum>lastSum){ return getCounterfeitCoin(coins,first+(last-first)/2-1,last); }else{ Return( 3 ) } } }

【问题一】 根据题干说明,填充C代码中的空(1)-(3) 【问题二】 根据题干说明和C代码,算法采用了( )设计策略。 函数getCounterfeitCoin的时间复杂度为( )(用O表示)。 【问题三】 若输入的硬币数为30,则最少的比较次数为( ),最多的比较次数为( )。


正确答案:问题1
(1)first+(last-first)/2 或(first+last)/2                 
(2)firstSum<lastSum
(3)first+(last-first)/2 或(first+last)/2
问题2
(4)分治法
(5)O(nlogn)
问题3
(6)2     (7)4

第5题:

执行下列程序,显示的结果是______。

first="china"

second=""

a=LEN(first)

i=a

DO WHILE i>=1

second=second+SUBSTR(first,i,1)

i=i-1

ENDDO

?second


正确答案:anihc
anihc 解析:变量a使用LEN函数取得字符串变量first的长度,该变量包含5个字母,所以它的长度为5,即a=5,然后将a的值赋给i,那么i也等于5。使用一个DO WHILE循环语句来操作,判断条件是变量i是否大于等于0,如果小于0,则退出循环,否则执行循环体。此时SUBSTR(first,5,1)的值为a,(从“china”字符串的第5位开始取一位字符);执行i=i-1后,i=4,重复此循环体的操作,变量second的值依次为a、an、ani、anih,anihc,最后i0,退出循环体。

第6题:

7.I_______ dance. It's too difficult for me.

A. can

B. am

C. can’t

D. am not


正确答案:C

第7题:

— Jane, I’m coming to say good-bye. I’m leaving tomorrow.\n— _______

A.I’m sorry.

B.Oh, no. Why?

C.Go slowly.

D.Why soon? Can’t you stay a few days longer?


参考答案:D

第8题:

I'll write the message so as (to not) forget.()

此题为判断题(对,错)。


参考答案:错

第9题:

If any beasts comes at you, I()stay with you and help you.

A、am going to

B、will

C、can


正确答案:B

第10题:

If he had really been there, I ___________ have seen him

A.will
B.shall
C.should
D.can

答案:C
解析:
考查应拟语气。根据if条件从句中的had really been there可知,这是与过去事实相反的虚拟语气.因此从句谓语动词用had+过去分词的形式,主句谓语动词用would/should/could/might+have+过去分词的形式。故C项正确。