网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
单选题
A circle has an area of A, A second circle has a diameter four times that of the first circle. What is the area of the second circle?
A
2A
B
4A
C
8A
D
16A
E
32A
参考答案
参考解析
解析:
设圆1的半径为r,所以A=πr2,所以圆2的半径为2r,面积=2*π*(2r)2=16πr2=16A,故本题应选D项。
设圆1的半径为r,所以A=πr2,所以圆2的半径为2r,面积=2*π*(2r)2=16πr2=16A,故本题应选D项。
更多 “单选题A circle has an area of A, A second circle has a diameter four times that of the first circle. What is the area of the second circle?A 2AB 4AC 8AD 16AE 32A” 相关考题
考题
●试题六阅读下列程序说明和C++代码,将应填入(n)处的字句写在答卷的对应栏内。【说明】①为类Circle增加一个构造函数,该函数有一个参数,并在构造时将该参数值赋给成员radius。将该函数实现为一个非内联函数,并且使用参数列表的方式将类成员赋值。②为类Circle增加一个成员函数print(),使得可以输出有关圆的信息,比如下列程序Circle c;C.SetRadius (5) ;C.Print();将输出:The circle has radius of 5!③完成友元函数void CompareR(Circle *c1,Circle *c2)的定义,在屏幕中输出c1与c2比较radius大小结果,要求使用if-else结构完成。输出结果如下:The circle has radus of 5!The circle has radius of 10!c1c2源程序文件test7_3.cpp清单如下:#includeiostream.hclass Circle{public:Circle():radius (5) {}(1)void SetRadius(int r) { radius=r; }int GetRadius() { return radius; }(2)friend void CompareR(Circle *c1,Circle *c2);private:int radius;};void CompareR(Circle *c1,Circle *c2){(3)cout"c1c2"endl;elseif ((c1-GetRadius())==(c2-GetRadius()))cout"c1=c2"endl;elseif ((c1-GetRadius())(c2-GetRadius()))cout"c1c2"endl;}void main(){Circle c1;c1.SetRadius (5) ;c1.Print();Circle c2 (10) ;c2.Print();CompareR(c1,c2);}
考题
阅读下列程序说明和C代码,把应填入其中n处的字句写在对应栏内。【说明】下面的程序能够计算不同图形的面积。程序中把每个图形的数据定义成结构类型,利用共同体类型描述2种图形的数据。程序根据输入参数代表的图形类型,求出图形的面积并输出。【程序】struct Circle{float x,y; /*圆心位置*/float r; /*圆半径*/};struct Rectangle{float width; /*矩形宽*/float length; /*矩形长*/};union shape{struct Circle circle;/*圆数据结构*/struct Rectangle rectangle;/*矩形数据结构*/};main(){union shape a;float area;int i;printf(“input number: 1circle,2rectangle,3 end\n”);scanf("%d",i);while (1) /*循环接收输入,并计算输出*/{switch(i){case 1:printf(“input radius:\n”);scanf(“%f”, (2);/*共同体类型变量接收输入*/area=3.1415926* (3);printf(“the area of circle=%f\n”,area);break;case 2:printf(“input width and length :\n”);seanf(“%f,%f”, (4);/*共同体类型变量接收输入*/。area=(5);printf(“the area of rectangle=%f\n”,area);break;}printf(“input number:1 circle,2 rectangle,3 end\n”);scanf(“%d”,i);}}
考题
使用VC6打开考生文件夹下的工程test7_3,此工程包含一个源程序文件test7_3.cpp,其中含有一个类Circle的定义,但该类的定义并不完整。请按要求完成下列操作,将类Circle的定义补充完整。(1)为类Circle增加一个构造函数,该函数有一个参数,并在构造时将该参数值赋给成员radius。将该函数实现为一个非内联函数,并且使用参数列表的方式将类成员赋值。请在注释“//**1**”之后添加适当的语句。(2)为类Circle增加一个成员函数print(),使得可以输出有关圆的信息,比如下列程序Circle c;c.SetRadius(5);c.Print();将输出:The circle has radius of 5!请在注释“//**2**”之后添加适当的语句。(3)完成友元函数void CompareR(Circle *cl,Circle*c2)的定义,在屏幕中输出c1与c2比较radius大小结果,要求使用 if-else结构完成。请在注释“//**3**”之后添加适当的语句。输出结果如下;The circle has radus of 5!The circle has radius of 10!c1<c2注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。源程序文件test7_3.cpp清单如下:include<iostream.h>class Circle{public:Circle():radius(5){}//**1**void SetRadius(int r) {radius=r; }int GetRadius() {return radius; }//**2**friend void CompareR(Circle *c1,Circle*C2);private:int radius;};void CompareR(Circle *c1,Circle *C2){//**3**cout<<"c1c2"<<endl;elseif((c1->GetRadius())==(c2->GetRadius()))cout<<"c1=c2"<<endl;elseif((c1->GetRadius())<(c2->GetRadius()))cout<<"c1<c2"<<endl;}void main(){Circle c1;c1.SetRadius(5);C1.Print();Circle c2(10);c2.Print();CompareR(c1,c2);}
考题
( 13 )补充完整下面的类定义:const double PI=3 .14;class Circle{ // 圆形物体的抽象基类protected:double r; // 半径public:Circle ( double radius=0 ) : r ( radius ) {}【 13 】 ; // 计算圆形物体表面积的纯虚函数声明};class Cylinder:public Circle { // 圆柱体类double h; // 高度public:Cylindr ( double radius=0, doubli height=0 ) :Circle ( radius ) , h ( height ) {}Virtual double Area () { // 计算圆柱体的表面积return 2*PI*r* ( r+h ) ;}};
考题
使用VC6打开考生文什夹下的工程test1_3。此工程包含一个test1_3.cpp,其中定义了类circle和column,其中column类由circle类protected派生,但两个类的定义并不完整。请按要求完成下列操作,将程序补充完整。(1)定义类circle的保护数据成员r和area,它们都是double型的数据。请在注释“//**1**”之后添加适当的语句。(2)添加类circle的无参数的构造函数,使circle对象的r默认值为0,请在汁释“//**2**”之后添加适当的语句。(3)添加派生类column构造函数的定义,传入的参数为double型的height和radius,并将具分别赋值给数擗成员h和基类的r,请在注释“//**3**”之后添加适当的语句。(4)完成派生类column的成员函数print的定义,使其以格式“r=_area=_”先输出半径r和底面积area,再以格式“h=_vol=_”输出高h和体积vol的值,请在注释“//**4**”之后添加适当的语句。输山结果如下:r=1 area=3.1416h=2 vo1=6.2832注意:除在指定的位置添加语句外,请不要改动程序中的其他语句。源程序文件test1_3.cpp清单如下:include<iostream.h>const double pi=3.1416;class circle{protected://**1**public://**2**circle(double radius){ r=radius;}void print(){area=r*r*pi;cout<<"r="<<r<<" "<<"area="<<ared<<endl;}};class column: protected circle{protected:double h;public://** 3 **void print(){// ** 4 **}};void main(){column col(1.0,2.0);Col.print();}
考题
Software maintenance is to do necessary modification, supplenemt, and completeness during software life circle. Among the following vary kinds of maintenance, which one has the maximum workload in a general way?(73).A.relevance maintenanceB.completeness maintenanceC.correctness naintenanceD.other kinds of maintenance
考题
若有以下程序:include using namespace std;define PI 3.14class Point {private: i
若有以下程序: #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() { reurn 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 cl(5,7,10); cout<<c 1 .area()<<end1; return 0; } 程序执行后的输出结果是A.314B.157C.78.5D.153.86
考题
This restaurant has become popular for its wide__________of foods that suit alltastes and pockets.A.division
B.area
C.range
D.circle
考题
What is the ranking of Canada in the world by land area?( ) A.First
B.Second
C.Third
D.Fourth
考题
单选题In the figure below, a small circle, with radius x, is inside a larger circle, with radius 6. What is the area, in terms of x, of the shaded region?A
6π-2πxB
6π-πx2C
12π-2πxD
36π-2πxE
36π-πx2
考题
单选题()is the main reason that reduces the power advantage of a two-stroke engine over a same size four-stroke one to about()A
Inefficient scavenging;twiceB
Inefficient scavenging;1~8 timesC
Fewer strokes in a circle;twiceD
Fewer strokes in a circle;1~8 times
考题
单选题What defines a great circle? ()A
A curved line drawn on a Mercator ChartB
A course line that inscribes a loxodromic curveC
The shortest distance between any two points on the earthD
The smallest circle that can be drawn on the face of a sphere
考题
单选题What is the()of the turning circle in mavoeuvring?A
distanceB
largenessC
diameterD
measurerment
考题
单选题In relation to the turning circle of a ship,the term advance means the distance().A
gained at right angles to the original courseB
gained in the direction of the original courseC
moved sidewise from the original course when the rudder is first put overD
around the circumference of the turning circle
考题
单选题当对DrawWidth进行设置后,将影响()。A
Line、Circle、Pset和Line、Shape控件B
Line、Circle、PsetC
Line、Circle、Poine方法D
Line、Shape控件
考题
单选题A circle with center A has its center at (6, -2) and a radius of 4. Which of the following is the equation of a line tangent to the circle with center A ?A
y=3x+2B
y=2x+1C
y=-x+5D
y=-2E
y=-6
考题
单选题A circle has an area of A, A second circle has a diameter four times that of the first circle. What is the area of the second circle?A
2AB
4AC
8AD
16AE
32A
考题
单选题Circles O and P intersect at exactly one point, as shown in the figure above. If the radius of circle O is 2 and the radius of circle P is 6, what is the circumference of any circle that has OP as a diameter?A
4πB
8πC
12πD
16πE
64π
考题
单选题If the ratio of the area of a sector to the area of the circle is 2:3. what is the ratio of the length of the arc in the sector to the circumference of the circle?A
3/2B
2/3C
4/9D
1/4E
9/4
考题
单选题Vertically below the deckline is a circle whose outside diameter is 300mm.It is called the().A
the deck lineB
Plimsoll discC
Plimsoll lineD
summer load line
考题
单选题Two circles, P and Q, lie in the same plane. If the center of circle Q lies on circle P, then in how many points could circle P and circle Q intersect?Ⅰ. 0Ⅱ. 1Ⅲ. 2A
Ⅰ onlyB
Ⅱ onlyC
Ⅲ onlyD
Ⅰ, Ⅱ and ⅢE
Ⅱ and Ⅲ only
考题
单选题Concerning a celestial observation,the azimuth angle is measured from the principal vertical circle to the().A
Greenwich celestial meridianB
hour circle of the bodyC
local celestial meridianD
vertical circle of the body
考题
单选题If the radius of a circle is increased by 40%, how much will the area increase?A
16%B
20%C
40%D
80%E
96%
热门标签
最新试卷