问题 单项选择题

The fact that most Americans live in urban areas does not mean that they reside in the center of large cities. In fact, more Americans live in the suburbs of large metropolitan areas than in the cities themselves.
The Bureau of the Census regards any area with more than 2,500 people as an urban area, and does not consider boundaries of cities and suburbs.
According to the Bureau, the political boundaries are less significant than the social and economic relationships and the transportation and communication systems that integrate a locale. The term used by the Bureau for an integrated metropolis is an MSA, which stands for Metropolitan Statistical Area. In general, an MSA is any area that contains a city and its surrounding suburbs and has a total population of 50,000 or more.
At the present time, the Bureau reports more than 280 MSAs, which together account for 75 percent of the U.S. population. In addition, the Bureau recognizes 18 megapolises, that is, continuous adjacent metropolitan areas. One of the most obvious megapolises includes a chain of hundreds of cities and suburbs across 10 states on the East Coast from Massachusetts to Virginia, including Boston, New York, and Washington D. C. In the Eastern Corridor, as it is called, a population of 45 million inhabitants is concentrated. Another megapolis that is growing rapidly is the California coast from San Francisco through Los Angeles to San Diego.

Which of the following is NOT true

A.An integrated metropolis is an MSA.

B.MSA stands for Metropolitan Statistical Area.

C.A metropolis includes at least a metropolitan.

D.An MSA refers to city and its suburbs, with over 50,000 peopl

答案

参考答案:C

解析: 本题考查是非判断。根据第三段第二、三句“The term used by the Bureau for an integrated metropolis is an MSA, which stands for Metropolitan Statistical Area. In general, an MSA is any area that contains a city and its surrounding suburbs and has a total population of 50, 000 0r more.”可知,A、B、D三项在文中一一提到,均正确。只有C项在文中没有相关支持信息,故不正确。所以,答案是C。

填空题
问答题

已知数据文件IN26.DAT中存有200个4位数,并已调用读函数readDat()把这些数存入数组a中。请编制一函数jsVal(),其功能是:把千位数字和个位数字重新组成一个新的十位数(新十位数的十位数字是原4位数的千位数字,新十位数的个位数字是原4位数的个位数字),把百位数字和十位数字组成另一个新的十位数(新十位数的十位数字是原4位数的百位数字,新十位数的个位数字是原4位数的十位数字),如果新组成的两个十位数均是奇数并且两个十位数中至少有一个数能被5整除,同时两个新十位数字均不为零,则将满足此条件的4位数按从大到小的顺序存入数组b中,并要求计算满足上述条件的4位数的个数cnt,最后调用写函数writeDat(),把结果cnt及数组b中符合条件的4位数输出到 OUT26.DAT文件中。
注意:部分源程序已给出。
程序中已定义数组:a[200],b[200],已定义变量:cnt。
请勿改动主函数main()、读函数readDat()和写函数writeDat()的内容。
试题程序:
#include〈stdio.h>
#define MAX 200
int a[MAX], b[MAX], cnt = 0; void jsVal()

void readDat()

int i;
FILE *fp;
fp = fopen("IN26.DAT", "r");
for(i = 0; i〈 MAX; i++)
fscanf(fp, "%d", &a[i]);
fclose(fp);
main ( )

int i;
readDat ( );
j sVal ();
printf("满足条件的数=%d\n", cnt);
for(i = 0; i〈 cnt; i++)
printf("%d ", b[i]);
printf ( "\n" );
writeDat ( );


writeDat ( )

FILE *fp;
int i;
fp = fopen("OUT26.DAT", "w");
fprintf(fp, "%d\n", cnt);
for(i = 0; i 〈 cnt; i++)
fprintf(fp, "%d\n", bill);
fclose(fp);