问题 填空题

阅读以下说明和流程图,填补流程图中的空缺(1)~(5),将解答填入对应栏内。

[说明]

下面的流程图可在正文字符串T(1:L)中计算关键词字符串K(1:m)出现的次数(用n表示)。其中,L为字符串T的长度,m为字符串K的长度(m<L)。为便于模糊查找,关键词中的字符“”可以匹配任意一个字符。

在该流程图中,先从T中取出长度为m的子串存入A中,再将A与K进行逐个字符的比较(其中,K可以包含字符“”)。注意:从正文字符串中取出的关键词字符串不允许交叉。例如,“aaaaaa”中有3个关键词字符串“aa”。

[流程图]

 

(4)处应填()。

答案

参考答案:n+1或等价表示

阅读理解

It was the end of my first day as a waitress in a busy New York restaurant. My cup had gone away, and my feet hurt. The loaded plates I carried seemed to be heavier and heavier. Tired and discouraged, I didn’t seem able to do anything right. As I made out a check for a family with several children who had changed their ice-cream order a dozen times, I was ready to stop. Then the father smiled at me as he handed me my tip. “Well done,” he said, “you’ve looked after us really well.” Suddenly my tiredness disappeared. I smiled back, and later, when the manager asked me how I’d like my first day, I said, “Fine!” Those few words of praise had changed everything. Praise is like sunlight to human spirit; we cannot flower and grow without it. and yet, most of us are only too ready to apply to others the cold criticism, but are unwilling to give out fellows the warm sunshine of praise. Perhaps that is why one word of praise can bring such pleasure.

It’s strange how chary we are about praising. Perhaps it’s because few of us know how to accept it. It’s especially rewarding to give praise in areas in which effort generally goes unnoticed.An artist gets admired for a glorious picture,a cook for a perfect meal.But do you ever tell your laundry(洗衣店)manager how pleased you are when the shirts are done just right? In fact,to give praise costs the giver nothing but a moment’s thought and a moment’s effort.

60.Which of the following can’t describe the writer’s situation before she got her tip?

A.She was tired.           B.She was busy. 

C.She was sorry.             D.She was confident.

61.According to the passage,which of the following is least likely to be given praise?

A.An artist.                B.A cook.   

C.A waitress.           D.A laundry manager.

62.The underlined word “chary”in Paragraph 2 means      

A.cautious       B.careful         C.unwilling        D.greedy

63.What is the best title of the passage?

A.Can You Praise Others?      B.Why do You Criticize Others?

C.Be Generous to Give Others Praise!       D.Don’t Criticize Others!

判断题