问题 单项选择题

关于面向对象的程序设计方法,下列说法正确的是【 】

A."封装性"指的是将不同类型的相关数据组合在一起,作为一个整体进行处理

B."多态性"指的是对象的状态会根据运行时要求自动变化

C.基类的私有成员在派生类的对象中不可访问,也不占内存空间

D.在面向对象的程序设计中,结构化程序设计方法仍有着重要作用

答案

参考答案:D

解析:本题考核C++程序的基本框架。"封装性"指将数据和算法捆绑成一个整体,而不是将不同类型的相关数据组合在一起。C++中的多态性是指一个面向对象的系统常常要求一组具有相同基本语义的方法能在同一接口下为不同的对象服务。基类的私有成员在派生类的对象中不可访问,但是也占据内存空间。C++同时支持结构化和面向对象两种程序设计的基本框架,所以在面向对象的程序设计中,结构化程序设计方法仍有着重要作用。

阅读理解

Greece declared a national state of emergency on Saturday as scores of forest fires that have killed at least 46 people continued to burn out of control, leaving some villages trapped within walls of flames, cut off from firefighters.

Although most of the fires have been on the Peloponnesian Peninsula, some broke out on the outskirts of Athens on Saturday, forcing the evacuation of homes and closing a major road linking the capital to the main airport for several hours. The national fire brigade said that by evening it had brought those blazes under control, including one that came within about six miles of the city.

The country has been vulnerable to fire this summer because of drought and three consecutive heat waves that sent temperatures soaring over 100 degrees. More than 3,000 forest fires have destroyed thousands of acres of wooded areas since June; the earlier fires killed nine people. The latest spate of fires on the peninsula started Friday. Strong, hot winds have spread the flames.

Firefighters expect the death toll to rise, because they have not yet been able to search some areas that had been overrun by flames.

Hardest hit by the fires were a dozen small villages t around the town of Zaharo in the western peninsula, where at least 12 people, including some who may have been trying to flee by car, were killed. Scores of other residents, including elderly and disabled people, remained trapped in their homes, phoning in to local television and radio stations, crying for help.

Late Saturday, Mr. Karamanlis, Prime Minister of Greece appeared on national television and declared that he was mobilizing all of the country’s resources to control the fire. Mr. Karamanlis also suggested that the recent fires might have been purposely set. “So many fires sparked simultaneously in so many regions is no coincidence,” he said, “We will get to the bottom of this and punish those responsible.”

The overstretched national fire services are being helped by an estimated 6,000 soldiers mobilized for the operation. A fleet of water-dumping aircraft was expected from France, Germany and Norway, after Greece appealed to the European Union for “urgent assistance.”

51.The writer mainly wants to tell us that ______ in the passage.

A. firefighters battles fearlessly in Greece to control the fire

B. constant fires in Greece have caused great life and wealth lose

C. Greece is facing great danger as forest fires continue to break out

D. Greek government is investigating the cause of recent forest fires

52. We can know from the passage that ______.

A. Athens, capital of Greece was not threatened in the fire

B. Greek government did not take effective measures to control the fire

C. many people had to leave their homes to avoid fire

D. all people endangered by the fire have already got immediate and proper help

53. According to the passage, which of the following might not contribute to the recent forest fires in Greek?

A. Storm thunders in summer

B. Lack of rainfall

C. Extremely hot weather this summer

D. Hot and strong wind

54. We can learn from the passage that ______.

A. now the fire crisis in Greece has come to an end

B. assistance from EU members is expected to come to help Greece

C. firefighters in Greece so far can still manage the situation

D. the number of people who die in the fire is expected not to rise any more

55. Mr. Karamanlis believes the forest fires in Greece _______.

A. is a happening by chance                             B. is a natural disaster

C. might be caused by human       on purpose             D. is a punishment of nature

填空题