问题 单项选择题

有以下程序:
#include <iostream>
using namespace std;
#define PI 3.14
class Point

private:
int x,y;
public:
Point(int a,int b)

x=a;
y=b;

int getx()

return x;

int gety()

return y;


class Circle : public Point

private:
int r;
public:
Circle(int a,int b,int c):Point(a,b)

r=c;

int getr()

return r;

double area()

return PI*r*r;


int main()

Circle c1(5,7,10);
cout<<cl.area()<<endl;
return 0;

程序执行后的输出结果是

A.314

B.157

C.78.5

D.153.86

答案

参考答案:A

解析: 本题考核派生类的定义和应用。本程序设计了一个点类Point,包含了横、纵两个坐标数据x和y,由它派生出了圆类Circle,并加入了新的数据成员,即一个半径r和一个求圆面积的函数成员area。
在主函数main中,首先定义了一个圆Circle类的对象c1,并通过它的构造函数初始化其数据成员。由此可知,其半径r的值为10,所以其面积为 PI*10*10=314,即对象c1的函数成员area的返回值为314。

阅读理解

The Sydney Opera House is a very famous building in the world. It has become Sydney’s best-known landmark and international symbol. The Opera House with a “sailing roof” was designed by a famous Danish architect(丹麦建筑师), Utzon. The base(基础)of the building was started in 1959, years before the designs were finished. Utzon spent four years deigning the Opera House. In 1962, the designs were finalized(定稿)and the construction began. In 1967, they started the decoration inside. It took 14 years in total to build the Opera House. Queen Elizabeth Ⅱ officially opened it on October 20th, 1973.

The Sydney Opera House cost around $100 million and was paid for by the public. 6225 square metres of glass was used to build it. The Opera House includes 1000 rooms. It is 185 metres wide. The building’s roof sections weigh about 15 tons. Each year, this fantastic building attracts 200 000 tourists to come for a visit or enjoy events in it.

The Opera House reaches out into the harbour(港湾). It is amazing and unforgettable, offering people a strong sense of beauty.

小题1:The designer of the Sydney Opera House was from _____________.

A.America

B.Australia

C.England

D.Denmark小题2: Building the Opera House lasted _____________.

A.from 1959 to 1973

B.from 1962 to 1973

C.from 1959 to 1967

D.from 1962 to 1967小题3:The underlined word “construction” means _______ in Chinese.

A.创立

B.设计

C.施工

D.竣工小题4:___________ paid for the cost of the building of the Sydney Opera House.

A.Utzon

B.The public

C.Queen Elizabeth Ⅱ

D.The government小题5:Which is the best title for the passage?

A.Sailing Roof

B.Travelling in Sydney

C.The Sydney Opera House

D.The Opening of the Opera House

单项选择题