问题 单项选择题

有以下程序:
#include<iostream>
using namespace std;
#definePl 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<<c1.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。

阅读理解

阅读下面短文,根据所给语境,按要求完成下列各题。

    In 1996, 39 American children started a very interesting project (计划)-the Green Tree Project. The

students began the project by gathering walnuts (核桃) in autumn. The nuts were buried in cages in the

school garden in mid-November. (1)In this way, the seeds (种子) could be kept cool and moist (潮湿)

for several months before they started growing.

    In February, the seeds were dug up, so they could begin to sprout (发芽). Sprouted seeds were kept

in fridges, so they could be stopped from growing until the time to plant. (2)This helped keep the trees

about the same size at planting time. In March, sprouted seeds were planted in paper soft drink cups.

Each student was asked to plant 12 trees. (3)Then the trees were carefully watered and watched. The

first walnut trees began to appear in about a week…

    On April 29th, the trees were transplanted (移植) to the lake. (4)It took the children only 90 minutes

to plant all the trees. It was so interesting to see a treeless area turn into a forest right before their eyes.

1、将1、2处的英文翻译成汉语。 

     (1)                                                                                                                                                            (2)                                                                                                                                                        

2、将3处的句子改写成主动语态形式。 

                                                                                                                                                             

3、将4处的句子用同义句改写。 

                                                                                                                                                      

单项选择题