问题 单项选择题

下面对对象概念描述正确的是( )。

A.任何对象都必须有继承性

B.对象是属性和方法的封装体

C.对象间的通信靠信息传递

D.方法是对象的静态属性

答案

参考答案:B

解析: 在面向对象程序设计中,允许作用于某个对象上的操作称为方法,方法是对象的动态属性。对象间的通信靠消息传递。对象是属性和方法的封装体,可以从祖先中继承属性和方法,但不是任何对象都具有继承性。 [知识拓展] 我们熟悉的windows中的对话框、按钮都是对象,可以把属性看做一个对象的性质,把方法看做对象的动作,把事件看做对象的响应。我们来用生活化的语言解释一下:①属性:日常生活中的对象,如小孩玩的气球同样具有属性、方法和事件。气球的属性包括可以看到的一些性质,如它的直径和颜色。②方法:气球还具有本身所固有的方法和动作,如充气方法(用氢气充满气球的动作)、放气方法(排出气球中的气体)和上升方法(放手让气球飞走),所有的气球都具备这些能力。③事件:气球还有预定义的对某些外部事件的响应,例如,气球对刺破它的事件响应是放气,对放手事件的响应是升空。

阅读理解

                                 

C

Celebrations spread across China when Shanghai, the Oriental Pearl, was given the right to host the 2010 World Expo on December 3. Shanghai won the honor after beating rivals from Russia, Mexico, Poland and South Korea.

“I’m very proud of being Chinese,” said Wang Kaibo, a Senior 2 student of the Middle School Affiliated (附属的) to Beijing Medical University. “The winning of the expo is a victory, not only for Shanghai residents, but for the people of the whole Chinese nation.”

Bidding for the expo shows that China is more confident of playing a more important role on the international stage. It’s competing for large events and the next one could be the World Cup, Wang said.

The World Expo 2010 and the 2008 Beijing Olympics will become the twin shining stars of China’s development over the next 10 years, said experts. The World Expo is known as “Olympics of the economic, cultural, scientific and technological fields.” It is usually held every five years and lasts for six months. The Olympics, World Cup and World Expo are considered three top international events in the world.

China is the first developing country to win the expo bid in the event’s about 159-year history. Not only will it attract more foreign investment to China, but experts say that the half-year-long exhibition will bring at least 70 million visitors to Shanghai.

The expo was first held in London in 1851. It has a history of global influence. The Eiffel Tower, built during the Paris World Expo in 1889, became the symbol of the French capital.Many historic inventions, such as the telephone and airplane, all made their first appearance at a World Expo.

48. What does the word in bald “rivals” probably mean in the second paragraph?

A. competitors.        B. enemies.         C. players.          D. supporters.

49. The winning of bidding for the World Expo 2010 and the 2008 Olympic Games implies ______.

A. China is beginning to play a more important part on the international stage.

B. China has played the most important role in the international affairs.

C. China has become a developed country for many years.

D. China is the first Asian country to win the expo bid in history.

50. As we know, in general, the Word Expo is usually held every ______ years, while the Olympics is usually held every ______ years.

A. 4;5          B. 5;4         C. 4;4               D. 5;5

51. By bidding for the expo and the Olympics, we are sure that ______.

A. China will beat rivals from Russia, Mexico, Poland and South Korea

B. China will become a super country in the United Nations

C. China will build a famous tower like Eiffel Tower as the symbol of the capital

D. China will develop more quickly than before and will benefit a lot from them

填空题