问题 单项选择题

在Visual FoxPro中,使用LOCATE ALL FOR命令按条件查找记录,执行该命令后,记录指针指向( )。

A.满足条件的第1条记录

B.满足条件的第2条记录

C.表起始位置

D.表结束位置

答案

参考答案:A

解析: LOCATE是按条件定位记录位置的命令,常用命令格式是:LOCATE FOR<条件表达式>。该命令执行后将记录指针定位在满足条件的第1条记录上,如果没有满足条件的记录则指针指向文件结束位置。

阅读理解

阅读理解。

      Mr Smith was in trouble those days. He drove a car for Mr Black, a rich businessman. He worked hard

and the shopkeeper liked him. But he couldn't work when he drank too much. And once he almost fell into

the river when he drove along the bridge. Mr Black became angry and was going to send him away. He had

a big family and was afraid of it and promised (许诺) he would stop drinking at once. The man told him to

wait to be dealt with (处置).

     One Monday morning Mr Smith came into the office with two badly burned ears.

     "What happened to your ears?" asked Mr Black.

     "Well," said the man. "I went to watch a football match yesterday while my wife was ironing (熨) clothes.

She had put the iron (熨斗) near the telephone before she went to cook supper. Our team lost the game and

I felt sorry for it. As soon as I went in the sitting-room, the phone rang and I answered the iron!"

     "And what happened to the other ear?"

     "When I put the iron down on the table, the telephone rang again!"

1.            , so he almost drove the car into the river. [ ]

A. Mr Smith was not careful

B. Mr Smith drank too much

C. Mr Smith forgot they were on the bridge

D. Mr Smith couldn't work in the evening

2. Mr Smtih went to watch the football match on            . [ ]

A. Monday

B. Tuesday

C. Saturday

D. Sunday

3. We can guess            . [ ]

A. Mr Smtih drank much after the match

B. Mr Smith was angry with his team

C. Mr Smith didn't drink those days

D. Mr Smith watched the match at the office

4. The             badly burned Mr Smith's ears. [ ]

A. telephone

B. drinking

C. iron

D. irons

5. What would happen to Mr Simth? [ ]

A. He would go on driving for Mr Black.

B. He would join his football team.

C. He would never watch any matches.

D. Mr Smith would send him away.

单项选择题 共用题干题