问题 单项选择题

用Write和Print语句向文件中写入多个数据的差别在于 ______。

A.Write语句不会自动在数据项之间插入逗号

B.Print语句自动在数据项之间插入逗号

C.Write语句写入字符串会自动给字符串加上双引号;写入的正数前面没有空格

D.Print语句写入字符串会自动给字符串加上双引号;写入的正数前面没有空格

答案

参考答案:C

解析:[评析] Write语句和Print语句的基本功能相同,其主要区别有以下两点:
①用Write语句向文件写数据时,数据在磁盘上以紧凑格式存放,能自动在数据项之间插入逗号,并给字符串加上双引号。一旦最后一项被写入,就插入新的一行。
②用Write语句写入的正数的前面没有表示符号位的空格。

单项选择题
阅读理解

Garden of small inventions

Visitors of all ages are invited to Port Discovery to see the new exhibit—a garden of small inventions, which features interactive activities and gadgets(小器械,小物件,小玩意) for the environmental protection. The exhibit runs through Sept.4. Fee is $10.75; free for ages younger than two. Contact 410-727-8120 or portdiscovery.org.

Rain-barrel workshop

The Parks and People Foundation presents a workshop on building water-efficient rain barrels for the home between 6pm-8pm on Wednesday at the foundation’s Stieff Silver Building. Cost is $50 and includes the barrel and all materials. Contact 410-448-5663, ext.109.

Pruning(修剪)plants

Visitors can attend a workshop on pruning plants between 9:30am-10am on Tuesday at Ladew Topiary Gardens. Visitors should meet in the Visitors Center at Ladew, Jarrettsville Pike, Monkton. $10; free for Ladew members, and includes admission to the gardens and the nature walk. Contact 410-557-9570 or www.ladewgardens.com.

Landscape exhibit

Photographs, paintings and drawings will be shown at Landscape and Nature—a view from Maryland, through Sept.9 at the University of Maryland. Opening reception is between 5pm-7:30pm on Tuesday. Contact 301-985-7937 or um.edu/art.

小题1:It will cost a couple with their newly-born baby________ to visit Port Discovery.

A.$ 30

B.$100

C.$21.5

D.nothing小题2:To learn how to make your flowers grow better, you will probably go to __________.

A.Port Discovery

B.Stieff Silver Building

C.Ladew Topiary Gardens

D.the University of Maryland小题3:You will call _______ to get information about learning something about art.

A.410-727-8120

B.410-448-5663

C.410-557-9570

D.301-985-7937小题4:Which activity is offered only on Wednesday according to the ads?

A.Garden of small inventions

B.Rain-barrel workshop

C.Pruning(修剪)plants

D.Landscape exhibit