问题 单项选择题

若fp已正确定义并指向某个文件,当未遇到该文件结束标志时函数feof(中)的值为

A.0

B.1

C.-1

D.一个非0值

答案

参考答案:A

解析: 读取文件时,当文件中的数据全部读完后,文件位置指针将位于文件的结尾。此时如果读数据,将会出现错误。为了保证读写数据的正确性,需要进行文件尾测试,文件尾测试使用函数feof(),它的功能测试fp指向的文件是否到达文件尾.若到达文件尾,返回值为非0,否则返回值为0。在本题中fP指向的某文件还没有到了文件尾,因此返回0,所以,4个选项中选项A符合题意。

阅读理解

阅读理解

       An old porter worked at the railway station for a long time. One morning he was standing and waiting for travelers to ask him to help them with their luggage(包裹), when he saw a short man running wards to

the train with a big bag in his hand.

       The porter watched the man for a few seconds, and then the man saw him. At once the short man ran up to the porter and asked, "Can I catch the 10:35 train to London, porter? "He was breathing very fast,

and he seemed worried.

       The old porter looked at him for a moment and then said with a smile, "Well, sir, I'd like to help you,

but I can't answer your question because I don't know how fast you can run along rails. You see," he

explained, "The 10:35 train to London left five minutes ago."

1. A porter's job is_______.

A. to stand in the railway station

B. to answer the travelers' questions

C. to help the travelers carry their luggage

D. to ask the travelers to help him

2. One morning a short man ________.

A. was waiting for the porter to help him

B. was running along rails

C. was waiting for the train to London

D. was in a hurry to catch the 10:35 train to London

3. The short man looked worried because _______.

A. he couldn't run so fast as the train

B. he wanted to knows if he could catch the 10:35 train to London

C. the porter watched him for a few seconds

D. he lost his bag

4. At the end of the story, the porter ________.

A. told the short man there was no 10:35 train to London

B. told the short man when he could catch the train

C. helped the short man to catch the train

D. played a joke on the short man

5. When the porter told the short man the train had left, the time was _______.

A. 10:40

B. 10:35

C. 10:30

D. 10:45

单项选择题

Opinion polls are now beginning to show that, whoever is to blame and whatever happens from now on, high unemployment is probably here to stay. This means we shall have to find ways of sharing the available employment more widely.
But we need to go further. We must ask some fundamental questions about the future work. Should we continue to treat employment as the norm Should we not rather encourage many ways for self-respecting people to work Should we not create conditions in which many of us can work for ourselves, rather than for an employer Should we not aim to revive the household and the neighborhood, as well as the factory and the office, as centers of production and work
The industrial age has been the only period of human history in which most people’s work has taken the form of jobs. The industrial age may now be coming to an end, and some of the changes in work patterns which it brought may have to be reversed. This seems a daunting thought. But, in fact, it could offer the prospect of a better future for work. Universal employment, as its history shows, has not meant economic freedom.
Employment became widespread when the enclosures of the 17th and 18th centuries made many people dependent on paid work by depriving them of the use of the land, and thus of the means to provide a living for themselves. Then the factory system destroyed the cottage industries and removed work from people’s homes. Later, as transport improved first by rail and then by road, people commuted longer distances to their places of employment until, eventually, many people’s work lost all connection with their home lives and the places in which they live.
Meanwhile, employment put women at a disadvantage. In preindustrial times, men and women had shared the productive work of the household and village community. Now it became customary for the husband to go out to paid employment, leaving the unpaid work of the home and families to his wife. Tax and benefit regulations still assume this norm today, and restrict more flexible sharing of work roles between the sexes.
It was not only women whose work status suffered. As employment became the dominant form of work,young people and old people were excluded—a problem now,as more teenagers become frustrated at school and more retired people want to live active lives.
All this may now have to change.
The time has certainly come to switch some effort and resources away from the idealist goal crea- ting jobs for all, to the urgent practical task of helping many people to manage without full-time jobs.

It can be inferred from the passage that______.

A. most people who have been polled believe that the problem of unemployment may not be solved within a short period of time
B. many farmers lost their land when new railways and factories were being constructed
C. in preindustrial societies housework and community service were mainly carried out by women
D. some of the changes in work pattern that the industrial age brought have been reversed