问题 单项选择题

当变量c的值不为2、4、6时,值也为“真”的表达式是______。

A.(c==2)||(c==4)||(c==6)

B.(c>=2&&c<=6)||(c!=3)||(c!=5)

C.(c>=2&&c<=6)&&!(c%2)

D.(c>=2&&c<=6)&&(c%2!=1)

答案

参考答案:B

解析: 选项A表示当变量C的值为2、4、6中的任意一个时表达式的值为真,不满足条件;选项B表示,当C的值不等3时为真,C的值不等于5时为真,2=<c<=6时为真,可见当c的值为2、4、6时满足条件,c为其他的值也可满足条件,如c=8;选项C表示,2=<c<=6并且c要能被2整除时表达式的值为真,满足条件的值只有2、4、6;选项D中的表达式可以转换为选项C,同样是不满足条件的。

阅读理解

阅读理解。

     One day Jack's wife was cleaning out a closet(壁橱).

     "Look at all these umbrellas," she said to Jack. "There are eight and they are all broken."

     "I'll take them to the umbrella shop and have them mended," Jack said.

     Jack took the eight umbrellas to the shop and left them there. "They'll be ready tomorrow," the

shopkeeper said.

     That evening Jack went home from the office by bus as usual. He sat next to an old woman. She

had an umbrella on the floor near her.

     When the bus reached his stop, he picked up her umbrella and stood up. "Hey!" the woman said.

"That's my umbrella!"

     "I'm sorry," Jack said, and at the same time he gave the umbrella to her. "I wasn't thinking. Please

excuse me."

     The next day he got back the umbrellas from the umbrella shop and got on the bus.

     As he sat down, a voice behind him said, "You certainly have a successful day!"

     He turned around and saw the woman whose umbrella had almost been taken by him the day before.

1. Jack's wife found        umbrellas in the closet.

A. eight broken      

B. broken eight    

C. eight new    

D. new eight

2.  __     had the broken umbrellas mended in the umbrella shop.

A. Jack's wife      

B. Jack        

C. The shopkeeper    

D. The old woman

3. That evening the old woman's umbrella was almost taken by __    .      

A. the shopkeeper    

B. Jack's wife  

C. Jack      

D. the driver

4. The next day Jack saw the woman    _    .      

A. in the shop      

B. at home      

C. on the train    

D. on the bus

5. Which of the following is True?

A. Jack had an umbrella shop.  

B. The woman's umbrella was Jack's.

C. The woman thought Jack was a thief.

D. Jack bought eight umbrellas from the shop again.

单项选择题 A型题