问题 填空题

设窗体上有Text1文本框和Command命令按钮,并有以下程序:Private Sub Command1_Click()Iemp$=“”For k=1 To Len(Text1)Ch$=Mid(Text1,k,1)If Not found(temp,ch)ThenTemp=temp&( 13 ) End ifNext kText1= ( 14 ) End SubPrivate Function found(str As String,ch As String)As BooleanFor K=1 To Len(str)If ch=Mid(Str,k,1) Then Found=( 15 ) Exit FunctionEnd IfNext kFound=FalseEnd Function运 行时,在文本框中输入若干英文字母,然后单击命令按钮,则可以删去文本框中所有重复的字母。例如,若文本框中原有字符串为“abcddbbc”,则单击命 令按钮后文本框中字符串为“abcd“。其中函数found的功能是判断字符串str中是否有字符ch,若有,函数返回True,否则返回False。请 填空。

答案

参考答案:True

解析:【解析】found函数是判断某个字符是否在某个字符串中,如果是则返回True,如果不是则返回False。

阅读理解

Jeanne Calment, a French woman, become a record breaker on 17 October 1995, when at the age of 120 years and 238 days, she became the longest-lived human being on record. A Japanese man died in 1986 at the age of 120 years and 237 days.

Jeanne Calment lives in a small old people’s home in the south of France, her husband, her only child and her grandson have all died. She is nearly blind and deaf and is always in a wheelchair, but her doctor describes here as being “more like a 90-year-old in good health” than someone of 120. She still has a lively sense of humor. When asked on the 120th birthday what she expected of the future, she replied, “A very short one.” She also remarked that she thought the good Lord had forgotten all about her.

So what is the key to a long life? According to some doctors, diet, exercise and no smoking are the three important factors. Jeanne Calment has followed two of the tips. She has always eaten a healthy diet, and she used to do exercises every day until she broke her leg at the age of 115. However, until recently she drank two glasses of strong red wine a say, and she does smoke (now only a little). Besides, Jeanne Calment might have got very good genes from her parents. Her father lived to the age of 94 and her mother to 86.

A local lawyer bought her house when she was 80 under an agreement that he would pay her some money every year until her death. It must have seemed a good move at the time, but so far the lawyer has paid her at least three times the value of the house. Every year on her birthday Jeanne Calment sends him a card saying: “Sorry, I’m still alive!”

小题1: How does Jeanne Calment feel about her old age?

A.She feels upset and unhappy.

B.She is cheerful and humorous.

C.She likes to live much longer.

D.She feels she is going to die very soon.小题2: The text seems to suggest that Jeanne Calment owes her good health and long life to______.

A.smoking only little every day

B.neither smoking nor drinking

C.always drinking two glasses of strong red wine a day and never smoking

D.the good genes from her parents, a healthy diet and some exercises小题3: Which of the following could best explain the underlined word “genes” in the third paragraph?

A.good habits of body-building.

B.Some materials that control the development of a living thing.

C.Comfortable living conditions.

D.Something necessary for a person to keep his life.小题4:Why did Jeanne Calment say “Sorry, I’m still alive!” to the local lawyer?

A.She had an agreement with the lawyer when she was 80.

B.The lawyer has not paid her enough rent yet.

C.The lawyer has paid her more money than the value of the house.

D.The house she sold to the lawyer was worth the money already paid.

单项选择题