问题 单项选择题

如果在命令窗口执行命令:LIST 名称,主窗口中显示: 记录号 名称1 电视机2 计算机3 电话线4 电冰箱5 电线假定名称字段为字符型、宽度为 6,那么下面程序段的输出结果是______。GO 2SCAN NEXT 4 FOR LEFT(名称,2)="电" IF RIGHT(名称,2)="线"EXIT ENDIF ENDSCAN 名称

A.电话线

B.电线

C.电冰箱

D.电视机

答案

参考答案:A

解析: LEFT(<字符表达式>,<数值表达式>)功能是从字符表达式左边开始,截取<数值表达式>指定长度的 字符串。RIGHT(字符表达式, 数值表达式):返回一个字符串右边的若干字符,返回值是字符型。本题是从 2、3、4、5 这 4 条记录中,将最先找到的第 1 个字是"电",而且最后一个字是"线"的显示出来。

阅读理解

阅读理解。

     Jess really felt very happy. When he arrived at his seat in the classroom that morning, he found an

invitation  (请帖) on his desk. It was from several of his classmates asking him to join them on a

camping trip (野营). This was the first time he was asked to join in an out-of-school activity (活动).

Why were they asking him now? Nobody seemed to like him. In fact, he had been so lonely that he

drowned his feeling with food. As a result, he had put on a lot of weight (体重),and this gave the kids

something more to make fun of him.

     Cindy, who was standing near Jess when he read the invitation, went out quickly to tell the others that

the trick (戏弄) had worked. Everyone was pleased that Jess thought that was true. But there was no

camping trip. The whole thing was made up.

    At first, Cindy thought it was fun. But later, when Jess told her that he was going to buy a sleeping bag

with his saving, Cindy had a second thought. She knew that Jess's family had little money, and she hated

to see him spend his savings on something he would never use. Cindy also hated to tell Jess the truth, Her

close friends would be angry with her.

    What could she do now?

1. Choose the best title for this story.

A. Jess and his School

B. Jess and His Friends

C. An Invitation For Jess

D. Jess and His Camping Trip

2. The sentence " he drowned his feeling with food" means _____.

A. he ate a lot to make himself less lonely

B. he asked for a lot of food from his classmates

C. he brought his food to his classmates

D. he had a lot of food to put on his weight

3. What would happen if Cindy told Jess the truth?

A. Jess would go on the camping trip himself.

B. Everyoue would be angry with Cindy.

C. Cindy might have trouble with her friends.

D. Jess might be thankful to his classmates.

4. If Jess really bought a sleeping bag, _____.

A. everyoue else would also buy one

B. it would be the best in the class

C. Cindy would pay for it

D. he would have it for no use

5. From the story we can guess _____.

A. everybody would go camping except Jess

B. Jess had few friends in the class

C. Cindy was Jess's best friend in the class

D. Jess joined in many out-of-school activities

单项选择题