网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
The base of a rectangle is two times as long as the height. If the perimeter is 42, what is the area of the rectangle?
A

36

B

42

C

98

D

196

E

218


参考答案

参考解析
解析:
If h represents the height, then the base is 2h. Since Perimeter=42=2(h+2h), hence h=7 and base=14. So Area=7×14=98.
更多 “单选题The base of a rectangle is two times as long as the height. If the perimeter is 42, what is the area of the rectangle?A 36B 42C 98D 196E 218” 相关考题
考题 阅读下列程序说明和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);}}

考题 使用RECTANGLE命令绘制一个矩形,并使该矩形具有厚度为100。正确的方法为()。A.用RECTANGLE命令先绘一个矩形,然后用ELEV命令设置厚度为100B.用ELEV命令设置厚度为100,然后用RECTANGLE命令绘制矩形C.用RECTANGLE命令先绘一个矩形,然后用CHANGE命令改变厚度为100D.在RECTANGLE命令中先设置其厚度为100,然后再绘制矩形E.用RECTANGLE命令先绘一个矩形,然后再用RECTANGLE命令设置厚度为100

考题 直流安全电压为()V。 A、36B、42C、50D、120

考题 使用VC6打开考生文件夹下的工程test41_3。此工程包含一个test41_3.cpp,其中定义了类Rectangle,但该类的定义并不完整。请按要求完成下列操作,将程序补充完整。(1)定义类Rectangle的私有数据成员left,top和fight,bottom,它们都是int型的数据。请在注释“//**1**”之后添加适当的语句。(2)添加类Rectangle的带四个int型参数1、t、r、b的构造函数的声明,并使这四个参数的默认值均为0,请在注释“//**2**”之后添加适当的语句。(3)添加类Rectangle的成员函数SetTop()参数为int型的t,作用为把t的值赋给类的数据成员top,添加类Rectangle的成员函数SetBottom()参数为int型的t,作用为把t的值赋给类的数据成员bottom,请在注释“//**3**”之后添加适当的语句。(4)完成派生类Rectangle的成员函数Show()的定义,使其以格式“right-bottom point is(right,bottom)”输出,请在注释“//**4**”之后添加适当的语句。源程序文件test41_3.cpp清单如下:include <iostream.h>class Rectangle{// ** 1 **int right, bottom;public:// ** 2 **~ Rectangle(){};void Assign(int 1, int t, int r, int b);void SetLeft(int t){left = t;}void SetRight(int t){right = t;}// ** 3 **void SetBottom(int t){bottom = t;}void Show();};Rectangle::Rectangle(int 1, int t, int r, int b){left = 1; top = t;right = r; bottom = b;}void Rectangle::Assign(int 1, int t, int r, int b){left = 1; top = t;right = r; bottom = b;}void Rectangle::Show(){cout<<"left-top point is ("<<left<<","<<top<<")"<<'\n';// ** 4 **}void main(){Rectangle rect;rect.Show();rect.Assign(100,200,300,400);rect.Show();}

考题 下面程序段中,说法正确的是( ) 。class location{ public : int GetX(); }; class rectangle:private location { public: int GetW(); }; A.类rectangle的私有派生类是locationB.类rectangle中的public成员在类location中是私有的C.类location中的public成员在类rectangle中是不可访问的D.viodf(){Rectangler;intX=r.GetX();}其中intX=r.GetX();是非法语句

考题 阅读以下说明和C++代码,填入(n)处。[说明]以下C++代码使用虚函数实现了同一基类shape派生出来的Class rectangle、Class triangle、Class circle实现了计算矩形、圆形面积的计算。仔细阅读以下代码,将(n)处语句补充完整。[代码5-1]include<iostream.h>define PI 3.14159class shape {//基类protected:(1);public:(2);(3);};[代码5-2]class rectangle: public shape {public:rectangle (int x2,int y2,int r2): (4) {};double area ( ) {return x*y; };};class circle: public shape {public:circle (int x3,int y3,int r3):(5){};double area ( ) {return r*r*PI; };};[代码5-3]void main ( ){rectangle r (10,20,0);circle c (0,0,30);shape (6);cout<<"长方形面积="<<s1->area ( ) <<endl;cout<<"圆形面积="<<s2->area ( ) <<endl;}[运行结果]长方形面积=200圆形面积=2827.43

考题 下列程序的执行结果为【 】。include class Point{public:Point(double i, double j) 下列程序的执行结果为【 】。include <iostream. h>class Point{public:Point(double i, double j) { x=i; y=j;}double Area() const { return 0.0;}private:double x, y;};class Rectangle: public Point{public:Rectangle(double i, double j, double k, double 1)double Area() const {return w * h;}private:double w, h;};Rectangle: :Rectangle(double i, double j, double k. double 1): Point(i,j).{w=k, h=1}void fun(Point s){cout<<s. Area()<<end1;}void main( ){Rectangle rec(3.0, 5.2, 15.0. 25.0);fun(rec)}

考题 使用VC6打开考生文件夹下的工程test1_1,此工程包含一个源程序文件test1_1.cpp,但该程序运行有问题,请改正main函数中的错误,使该程序的输出结果如下:Constructor called.Default constructor called.Area is 6Area is 0Area is 6源程序文件test1_1,cpp清单如下:include<iostream.h>class RectAngle{private:double ledge,sedge;public:RectAngle(){cout<<"Default constructor called.";}RectAngle(double l,double s){ledge=l;sedge=s;cout<<"Constructor called.";}void Set(double l,double s){ledge=l;sedge=s;}void Area(){cout<<"Area is"<<ledge*sedge<<endl;}};void main(){/***************** found *****************/RectAngle Rect1(2,3);RectAngle Rect2(1);/**************** found *****************/RectAnglC Rect3;Rectl.Area();/***************** found *****************/RecL2.lodge=0;Rect2.sedge=0;Reck2.Area();Rect3.Area();}

考题 A. Shape B. Drawing C. Rectangle D. V2Drawing

考题 A. Shape B. Drawing C. Rectangle D. V2Drawing

考题 吸收塔每层喷淋的喷嘴有()个。A、36B、42C、48D、52

考题 AutoCAD中设置图幅用()命令。A、NEWB、LIMITSC、EXTENDD、RECTANGLE

考题 人体安全电压最高是()V。A、36B、42C、220

考题 我国规定的安全电压是指不大于()V的电压。A、36B、42C、24

考题 按住Ctrl键Rectangle可以画()。A、矩形

考题 Which statements concerning the effect of the statement gfx.drawRect(5, 5, 10, 10) are true, given that gfx is a reference to a valid Graphics object?()  A、The rectangle drawn will have a total width of 5 pixels.B、The rectangle drawn will have a total height of 6 pixels.C、The rectangle drawn will have a total width of 10 pixels.D、The rectangle drawn will have a total height of 11 pixels.

考题 进行汽车二级维护前,检测分电器的触点闭合角应为()°。A、30~36B、36~42C、42~48D、48~54

考题 我国规定安全电压是()V。A、36B、42C、12D、24

考题 单选题If the area of a square with sides of length 8 centimeters is equal to the area of a rectangle with a width of 4 centimeters, what is the length of the rectangle, in centimeters?A 4B 8C 12D 16E 18

考题 单选题关于图3.19的叙述()是不正确的。A Rectangle类和Circle类都有名为area的属性,这两个属性一定是相同的属性B Rectangle类和Circle类都有名为getArea的操作,这两个操作一定是相同的操作C Rectangle中名为length的属性和Circle类中名为radius的属性,这两个属性一定是不同的属性D Shape类有一个属性,Circle类有两个属性,Rectangle类有三个属性

考题 单选题If one pair of opposite sides of a square are increased in length by 20% and the other pair of sides are increased in length by 50%, by what percent is the area of the rectangle that results greater than the area of the original square?A 10%B 50%C 70%D 75%E 80%

考题 单选题The length of a rectangle is 5 more than the side of a square, and the width of the rectangle is 5 less than the side of the square. If the area of the square is 45, what is the area of the rectangle?A 20B 25C 45D 50E 70

考题 单选题A white buoy with an orange rectangle on it displays().A directionsB dangersC exclusion areasD All of the above

考题 单选题Which statements concerning the effect of the statement gfx.drawRect(5, 5, 10, 10) are true, given that gfx is a reference to a valid Graphics object?()A The rectangle drawn will have a total width of 5 pixels.B The rectangle drawn will have a total height of 6 pixels.C The rectangle drawn will have a total width of 10 pixels.D The rectangle drawn will have a total height of 11 pixels.

考题 单选题What is the circumference of a circle in which a 5 by 12 rectangle is inscribed?A 13nB 17nC 26nD 34nE 60n

考题 问答题A rectangle is equal in area to a square with sides of length 12. Is the diagonal of the rectangle greater in length than 20?  (1) The rectangle has a length of 16.  (2) The rectangle has a width of 9.

考题 单选题An orange and white buoy with a rectangle on it displays().A directionsB distancesC locationsD All of the above