问题 单项选择题

以下关于C++语言类的说法中正确的是( )。

A. C++语言的默认访问权限是private

B. C++语言中的类定义,用户一定要自己定义一个构造函数用于实例化类

C. C++语言中的成员函数的实现部分一定要写在类定义外

D. C++语言中的类不能够嵌套定义

答案

参考答案:A

解析:本题考查C++语言中类定义和它的概念。C++语言的默认访问权限修饰符是private。注意:C++语言中的构造函数是系统默认就有的,用户可以自己定义也可以不定义,故选项B)错误;C++语言的类是可以嵌套定义的,故选项D)错误;C++语言中成员函数的实现部分也可以写在类定义内,故选项C)错误。

单项选择题
阅读理解

E

“Life is speeding up. Everyone is getting unwell.”

This may sound like something someone would say today. But in fact, an unknown citizen who lived in Rome in AD 52 wrote it.

We all love new inventions. They are exciting, amazing and can even change our lives.

But have all these developments really improve the quality of our lives?

Picture this: You’re rushing to finish your homework on the computer. Your mobile phone rings, a QQ message from your friend appears on the screen, the noise from the television is getting louder and louder. Suddenly the computer goes blank and you lose all your work. Now you have to stay up all night to get it done. How calm and happy do you feel?

Inventions have speeded up our lives so much that they often leave us feeling stressed and tired. Why do you think people who live far away from noisy cities, who have not telephones, no cars, not even any electricity often seem to be happier? Perhaps because they lead simpler lives.

One family in the UK went “back in time” to see what life was like without all the inventions we have today. The grandparents, with their daughter, and grandsons Benjamin, 10, and Tomas, 7, spent nine weeks in a 1940s house. They had no washing machine, microwave, computer or mobile phones.

The grandmother, Lyn, said, “It was hard physically, but not mentally.” She believed life was less materialistic. “The more things you have, the more difficult life becomes,” She said. The boys said they fought less to fight over, such as their computer. Benjamin also noticed that his grandmother had changed from being a “trendy(时髦的), beer-drinking granny, to one who cooked things.”

Here are some simple ways to beat the stress often caused by our inventions!

Don’t be available all the time. Turn off your mobile phone at certain times of the day. Don’t check your e-mail every day.

Don’t reply to somebody as soon as they leave a text message just because you can. It may be fun at first, but it soon gets annoying.

72.The passage is mainly about        .

A.problem with technology

B.improvements of our life with technology

C.the important roles technology plays in our everyday life

D.major changes which will be likely to happen to technology

73.The writer quoted(引用) what a citizen in ancient Rome said at the beginning of the story in order to        .

A.share a truth about life

B.tell us what life was like long time ago

C.make us wonder what causes such a thing to happen

D.point out that you experience some big problems and they may be the same

74.Why did the family choose to spend some time in a 1940’s house? Because        .

A.they liked to live simple lives

B.they were curious about how people lived without modern inventions

C.they were troubled by modern inventions

D.living in a different time would be a lot of fun for them

75.What do you think the underlined word “available” in the first suggestion offered by the writer mean?

A.Busy on line.   B.Free..       C.Be able to.       D.Be found by others.