问题 单项选择题

设有:int a=1,b=2,c=3,d=4,m=2,n=2;执行(m=a>b)&&(n=c>d)后n的值是()。

A.1

B.2

C.3

D.4

答案

参考答案:B

解析:

本题考查逻辑与运算的运算规则。其规则是:当运算符前后两个条件表达式都满足时,其最终结果才为真。当发现第一个表达式的值为假后,计算机将不再执行后面表达式的运算。本题中,由于前一个表达式的值为“假”,所以,后面的表达式不再进行运算,因而n的值保持不变,仍为2。

选择题
阅读理解

阅读理解.

     Since its opening,camp teachers at New Jersey's Liberty Lake Day Camp disinfect

(给……消毒) door knobs,take the temperatures of children as they arrive and remind

the campers not to share canned Coke.

     Many of the 12,000-plus summer camps in the United States are making greater efforts

to guard against the spread of the new A/H1N1 flu.

     Many parents are debating whether they should stop their kids from enjoying the summer

camp because of the new flu.Jing Zhang of New York said she decided to keep her

5-year-old daughter at a local day-care center."Why would I want to spend a fortune on

the summer camp when the risk is the same?" she asked.

     Dr.Daniel Rauch,said the risk of catching A/H1N1 flu is only greater in close or group

settings,for instance,when kids sleep near each other in beds,tents or cabins.Unless children

already have potential illness or immunodeficiencies (免疫缺陷),going to summer camps

does not necessarily have a greater risk of catching A/H1N1 flu than going to public spaces

such as playgrounds and shopping centers,he added.

     Some camp administrators said they would send any sick child home immediately or

separate them in a clinic and let them play board games while they are being observed.

"We try to create a temporary camping center in the summer and we are very vigilant

about it," said Andy Pritikin,director of Liberty Lake Day Camp in Mansfield,who sent a

child with fever home last week,with full credit to come back later in the summer.

     "Parents should know whether camp nurses are available.And if there's only a bottle

of medicine and a bed in the back room,and it takes three and a half hours to get to the

nearest hospital,parents need to know that," said Sean Nienow,director of the National

Camp Association.

1.To protect campers from A/H1N1 flu,the organizers have taken the following

measures EXCEPT________.

A.taking campers' temperatures on their arrival

B.building temporary clinics near camping places

C.separating sick campers or sending them home soon

D.reminding campers of some matters they need to pay attention to

2.According to Dr.Daniel Rauch,________.

A.taking children to public places and sending them to camps are both safe

B.parents should not let their children go camping or take them to public places

C.going to summer camps doesn't mean an increasing risk of catching A/H1N1 flu

D.sending children to camps is more dangerous than taking them to public places

3.The "vigilant" in the fifth paragraph refers to"________".

A.cautious

B.excited

C.hopeful

D.confident

4.Which of the following can be inferred from the passage?_____

A.Experts encourage parents to send their kids to camps.

B.Parents are very worried about the spread of A/H1N1 flu.

C.A/H1N1 flu has spread widely among young campers in the US.

D.Children who have potential illnesses are not allowed to go camping.

5.What can we learn from what Sean Nienow says in the last paragraph?_____

A.The medical conditions are poor at the camp.

B.Children should not be sent to camps far from the hospital.

C.Parents should be informed of the medical conditions at the camp.

D.Parents need to realize that camps have no good medical conditions.