问题 单项选择题

有如下程序:
public class Sun

public static void main(String args[ ])

int s=0;
int i=1;
while (i<=100)

s=s+i;

System.out.println(s);


运行后的结果是( )。

A.5050

B.5051

C.死循环,直到溢出

D.无穷大的数

答案

参考答案:C

解析: 本题考查对while循环语句的理解。在while语句中的条件再循环中必须有加的可能,循环才能正常结束。如条仆恒为真,循环水无终止地进行下去,出现死循环。此程序由于i的值始终小于0,因此,这是一个死循环, s的值为1+1+1+...直到系统溢出。如在第4行后面加上语句i=i+1,循环就会正常结束。故本题答案是C。

阅读理解

阅读理解。

     May 20 is National Student Nutrition Day (营养日). Why is student nutrition important?

     Just as a cell phone needs energy from charging (充电), we humans need energy from food. While

eating food is the only way to  (A) 使我们强壮, what we eat and the way we eat it are also very

important, because they decide ( B )  whether we can get good nutrition.

     Many of us have bad eating habits. For example, some don't eat breakfast. Others eat too  

(C) _______ fast food. These bad habits may cause nutrition problems, which are bad for the growth

of our bodies.

     A study by the government in 2005 showed that (D) over 20 percent of people aged 13 to 20 have

nutrition prob-lems, such as obesity (肥胖) and high blood pressure.

     More students of Chinese middle and primary school sare (E) ________ having nutritious meals,

such as milk and fruit. This year, the theme (主题) of National Student Nutrition Day is "improve the

nutrition of students in the country-side". (F) The government will spend quite a lot helping students get

nutritious meals.

1. 将文中划线部分(A)译成英语。

    _____________

2. 写出文中划线部分(B)和(D)的同义词语或近义词语。

    _____________  _____________

3. 在文中(C)和(E)的空白处分别填上适当的单词。

    _____________  _____________

4. 将文中划线部分(F)改写为:

    _____________ will ____________ the government quite a lot to

    help students get nutritious meals.

5. 从文中找出一个有关营养不良症状的词语。

    _____________

问答题