问题 单项选择题

以下程序的功能是:给r输入数据后计算半径为r的圆面积s。程序在编译时出错。
main()
/* Beginning */
int r;float s;
scanf("%d",&r);
s=*PI*r*r; printf("s=%f\n",s);

若想纠正错误,应该( )。

A.更改注释语句书写位置
B.存放圆半径的变量r应该定义为整型
C.输出语句中不能加"s="
D.给计算面积的PI变量赋值

答案

参考答案:D

阅读理解

阅读短文,根据短文内容回答问题。

Ants may be very tinny, but they’re serious eaters! Ants love a picnic and they have their “ant-picnics”.

Favorite Foods

Want to find out what the ants like to eat? Place different foods on the edge of an upside-down plate. You can use butter, honey or seeds. Put this feeding station in the places where there are lots of ants. Wait three minutes and count the number of ants feeding on each food. Count them every three minutes. Watch and find out!

Do ants prefer sweet foods or less sweet ones? Here’s test: Give ants a choice between full-strength honey and a honey-water mixture. Offer a few drops of each choice side-by-side. Then count the number of ants you see near each site every three minutes.

How Far Will They Go?

Want to see how far ants travel to collect food? First find an ant nest(巢) by following some ants when they carry food home. Now you know how far the ants traveled to your food station. Next, move the food station about one foot (30cm) farther. Keep moving it until the ants no longer show up.

Spreading the News

Once ants find food they like, usually they try to get their nestmates to help. To find out how long it takes an ant to tell others there’s food nearby, offer their favorite food and watch. After the first ant finds it, begin counting the ants at the food station every minute. Also, watch their behavior, when the first ant heads home, what does it do when it gets near other nestmates?

小题1:Do ants love a picnic?

____________________________________________________

小题2:Where can we put the feeding station to find out ants’ favorite food?

____________________________________________________

小题3:How can we find an ant nest?

____________________________________________________

小题4:What do ants usually do once they find food they like?

____________________________________________________

小题5:What is the passage mainly about?

____________________________________________________

填空题