问题 单项选择题

以下叙述中不正确的是( )。

A) 在不同的函数中可以使用相同的名字的变量
B) 函数中的形式参数是局部变量
C) 在一个函数内定义的变量只在本函数范围内有效
D) 在一个函数内的复合语句中定义的变量在本函数范围内有效

答案

参考答案:D

解析: 此题考查的是变量的作用范围。选项D)中,在一个函数的复合语句中定义的变量是局部变量,只在定义此变量的复合语句内有效,并不是在整个函数体内都有效。

单项选择题
阅读理解

“Children who eat less salt and drink fewer sugar-sweetened soft drinks may significantly lower their risks of obesity,” researchers recently reported in the journal Hypertension.

“Sugar-sweetened soft drinks are a significant source of calorie intake in children,” said Feng J. He, a researcher at St George’s University of London, England. “It has been shown that sugar-sweetened soft drink consumption is related to obesity in young people.” They wanted to know whether there is a link between salt intake and sugar-sweetened soft drink consumption.

Dr He and colleagues analyzed data from a 1997 national survey of more than 2,000 people between 4 and 18 in Britain. “We found that children eating a lower-salt diet drank less fluid,” said He. “From our research, we estimated that 1 gram of salt cut from their daily diet would reduce fluid intake by 100 grams per day.”

The researchers also found that children eating a lower-salt diet drank fewer sugar-sweetened soft drinks. From their research, they predicted that reducing salt intake by 1 gram each day would reduce sugar-sweetened soft drink consumption by 27 grams per day, after. “If children aged 4 to 18 cut their salt intake by half, there would be a decrease of about two sugar-sweetened soft drinks per week per child, so each child would decrease calorie intake by almost 250 kilocalories per week,” Dr He said.

In previous studies, researchers found that a low-salt diet lowers blood pressure in children, and prevents the development of high blood pressure later in life. “Both high blood pressure and obesity increase the risk of having strokes and heart attacks,” Dr He said.

Dr He recommends that parents check labels and choose low-salt food products. “Small reductions in the salt content of 10 to 20 percent cannot be detected by the human salt taste receptors (感受器) and do not cause any technological or safety problems,” Dr He said.

小题1:According to the passage, obesity is directly linked to ______.

A.high-salt foods

B.sugar-sweetened soft drinks

C.high blood pressure

D.strokes and heart attacks小题2:Compared with previous studies, the recent one found that ______.

A.a lower-salt diet may mean less sugar-sweetened soft drink consumption

B.a low-salt diet keeps children out of high blood pressure

C.children face the risk of having strokes and heart attacks

D.low-salt food products do not do harm to people’s health小题3:Which of the following statements would Dr He agree to?

A.The less salt people eat, the healthier people become.

B.Children should reduce fluid intake in their daily life.

C.No high-salt food products will be available in shops.

D.A low-salt diet may prevent both high blood pressure and obesity.小题4:After reading the passage, who should take effective action?

A.Children.

B.Parents.

C.Doctors.

D.Researchers.