问题 单项选择题

窗体上有两个名称分别为Text1、Text2的文本框,一个名称为Command1的命令按钮。运行后的窗体外观如图所示。

设有如下的类型声明 TyPe Person name AS String*8 major AS String*20 End TyPe 当单击“保存”按钮时,将两个文本框中的内容写入一个随机文件Test29.dat中。设文本框中的数据已正确地赋值给Person类型的变量P.则能够正确地把数据写入文件的程序段是

A.Open"c:\Test29.dat"For Random As#1 Put#1,1,pC10se #1

B.OpeH"c:\Test29.dat"For Random As #1Get#1,1,pC108C#1

C.Open"c:\Test29.dat"For Random As#1 Len=Len(Put#1,1,pC108C#1

D.OPell"c:\Test29.dat"For,Random As#1 Len=Len(Get#1,1,pC106e#1

答案

参考答案:C

解析: 根据题意,由于是写入,所以只能用Put#语句。Get#语句表示读入,故B、D项不正确。同时应指明Len=Len(p),否则系统将以默认的128字节写入,故本题应选择C项。

填空题
阅读理解

第三部分:阅读理解(共20题;每小题2分,共40分)

阅读下列短文,从每题中所给的A、B、C、D四个选项中,选出最佳选项。

You have heard the expression “horse sense”. As you may imagine, it came from the time when the majority of people traveled in vehicles drawn by horses. A horse does have a lot of common sense, and there are many true stories about horses having saved their drivers from danger of death.

Today for the most part, people travel by train, ship, airplane, and car, but very little by the use of horses. Modern vehicles are propelled by engines, and an engine does not have any sense. In case of danger, many horses could be depended on to help. Not so with the engine; the driver must do all the things.

In recent years, the speed of travel has increased greatly. With the increased speed comes greatly increased danger. The driver of a powerful engine needs to be careful. A moment of being careless may cost a life. In order to drive today, a person must be able to see clearly, and he must learn and follow carefully the rules for safety on the road. Greater attention is the price we pay for using a machine instead of a horse.

56. The passage mainly talks about ______.

A. engines    B. safe driving    C. using horses    D. modern machines

57. The underlined word “propel” in the second paragraph means ______.

A. repair    B. raise    C. push forward    D. made

58. It can be inferred from the passage that ______.

A. a driver must know the rules of safety

B. a driver needs to be able only to tell red from green

C. an eye test is an important part of a driver’s examination

D. greater attention is needed for a driver while driving a machine

59. Which of the following is NOT true?

A. A driver must be able to see and hear well.

B. The driver of a car must follow the rules of safety.

C. Horses are known to have saved their drivers from injury.

D. It is better for vehicles to be pulled by horse than to be pushed by engine.