问题 填空题

以下程序运行时,若从键盘输入:10 20 30<回车>,输出的结果是_________。#includemain() {int i=0,j=0,k=0; scanf("%d%*d%d",&i,&j,&k); printf("%d%d%d\n",i,j,k);}

答案

参考答案:10300

解析:在 scanf 格式控制符中,如果在%后有一个“*”附加说明符,表示跳过它指定的列数。本题中“"%d%*d%d"”表示将 10 赋给 i,%*d 表示读入整数但不赋给任何变量,然后再读入整数 30 赋给变量 j, 那么变量 k 并没有重新赋值,仍为初始值 0。所以输出的结果为 10300。

阅读理解

Several southwestern provinces in China are now experiencing the worst drought(旱灾) since the 1950s. The drought has left 18 million people and 11 million farm animals in Yunnan, Guangxi, Sichuan and Chongqing without enough water supplies. And it has affected 5 million hectares of crops in the provinces.

According to China’s Meteorological Administration (中国气象局), the average daily temperature in Yunnan over the past six months has been two degrees higher than normal. And the province has had only half the rainfall of an ordinary year. In Qinglong county, Guizhou, there had been no rain for 268 days until March 25, when it finally rained for three hours.

To ensure the safety of drinking water, local governments have taken emergency action. Workers in parts of Yunnan are drilling (钻空) daily in the hope of digging 1035 wells by mid-May. Among them, 52 have already started working and 288 are under way, providing 20 percent of the required drinking water. Meanwhile, Yunnan province intends to send more migrants (农民工) to work outside the province as the drought worsens. This will not only help to deal with the drinking water shortages, but also increase those farmers’ income. The government will offer free skill training and organize job fairs.

56 The word “This” in paragraph 3 refers to______.

A. the worsening drought

B. the shortage of drinking water

C. sending more migrants to work outside

D. providing 20 percent of the required drinking water

57 Which of the following statements is true according to the passage?

A. The drought in southwestern provinces has been the worst ever in China.

B. Guizhou province has had only half the rainfall of an ordinary year.

C. The average temperature in Yunnan is two degrees lower than normal.

D. 1035 wells are expected to be drilled by mid-May in parts of Yunnan.

58 What’s the main idea of the passage?

A. Local governments have taken action to deal with drought.

B. Serious drought hits southwestern provinces in China.

C. More migrants work outside the southwestern provinces.

D.Yunnan government offers free skill training and organizes job fairs.

单项选择题