网友您好, 请在下方输入框内输入要搜索的题目:
题目内容
(请给出正确答案)
问答题
In the xy plane, is the point (4, -2) on the line l? (1) Point (1, 1) is on line l. (2) The equation x=2-y describes line l.
参考答案
参考解析
解析:
条件1只提供一个点,不能确定直线l;条件2给出直线方程,可以判断点(4,-2)是否在直线上,故本题选B项。
条件1只提供一个点,不能确定直线l;条件2给出直线方程,可以判断点(4,-2)是否在直线上,故本题选B项。
更多 “问答题In the xy plane, is the point (4, -2) on the line l? (1) Point (1, 1) is on line l. (2) The equation x=2-y describes line l.” 相关考题
考题
In line 2 (Pare. 2), the word "it" refers to which of the following phrases?A. "the intention" (line 1)B. "the collection" (line 1)C. "one member" (line 1)D. "each flower family" (line 1)
考题
使用VC6打开考生文件夹下的工程test24_3,此工程包含一个源程序文件test24_3.cpp,其中定义了抽象类point和它的派生类line,但它们的定义并不完整。请按要求完成下列操作,将程序补充完整。(1)定义类point的构造函数,函数含参数i和j它们都是int型数据,默认值都是0,用i和j分别将point的数据成员x0和y0初始化。请在注释“//**1**”之后添加适当的语句。(2)完成类point的成员函数纯虚函数void set()和void draw()的定义,请在注释“//**2**”之后添加适当的语句。(3)添加类line的构造函数,函数含参数i,j,m和n,它们都是int型数据,默认值都是0,用i和j分别将point的数据成员x0和y0初始化。请在注释“//**3**”之后添加适当的语句。输出结果如下:line::set()called.注意:除在指定位置添加语句之外,请不要改动程序中的其他内容。源程序文件test24_3.cpp清单如下:include<iostream.h>class point{public://**1**//**2**protected:int xO,yO;}class line: public point{public://**3**{x1=m;y1=n;}void set(){ cout<<"line::set() called.\n"; }void draw(){ cout<<"line::draw() called.\n"; }protected:int x1,y1;};void main(){line *lineobj = new line;1ineobj->set();}
考题
WhichchangecanyoumaketoTargetwithoutaffectingClient?()
A.Line4ofclassTargetcanbechangedtoreturni++;B.Line2ofclassTargetcanbechangedtoprivateinti=1;C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){};D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;
考题
1.publicclassTarget{2.privateinti=0;3.publicintaddOne(){4.return++i;5.}6.}And:1.publicclassClient{2.publicstaticvoidmain(String[]args){3.System.out.println(newTarget().addOne());4.}5.}WhichchangecanyoumaketoTargetwithoutaffectingClient?()A.Line4ofclassTargetcanbechangedtoreturni++;B.Line2ofclassTargetcanbechangedtoprivateinti=1;C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;
考题
classLine{11.publicstaticclassPoint{}12.}13.14.classTriangle{15.//insertcodehere16.}Whichcode,insertedatline15,createsaninstanceofthePointclassdefinedinLine?()
A.Pointp=newPoint();B.Line.Pointp=newLine.Point();C.ThePointclasscannotbeinstatiatedatline15.D.Line1=newLine();1.Pointp=new1.Point();
考题
阅读下列C++程序和程序说明,将应填入(n)处的字句写在对应栏内。【说明】Point是平面坐标系上的点类,Line是从Point派生出来的直线类。include <iostream.h>class Point{public:Point (int x, int y) ;Point (Point p) ;~Point();void set (double x, double y) ;void print();private:double X,Y;};Point::Point (int x, int y) //Point 构造函数{X=x; Y=y; }Point::Point ( (1) ) //Point 拷贝构造函数{X=p.X; Y=p.Y;}void Point::set (double x, double y){X=x; Y=y; }void Point::print(){cout<<' ('<<X<<","<<Y<<") "<<endl; }Point::~Point(){cout<<"Point 的析构函数被调用! "<<endl;class Line: public Point{public:Line (int x, int y, int k) ;Line (Line s) ;~Line();void set (double x, double y, double k)void print();private:double K;};(2)//Line 构造函数实现{ K=k;}(3)//Line 拷贝构造函数实现{K=s.K;}void Line::set (double x, double y, double k){ (4);K=k;}void Line::print(){cout<<" 直线经过点";(5);cout<<"斜率为: k="<<K<<endl;}Line: :~Line(){cout<<"Line 析构函数被调用! "<<endl;}void main(){Line 11 (1,1,2) ;11 .print();Linel2 (11) ;12.set (3,2,1) ;12.print();}
考题
Given:Which code, inserted at line 15, creates an instance of the Point class defined in Line?()
A.Point p = new Point();B.Line.Point p = new Line.Point();C.The Point class cannot be instatiated at line 15.D.Line l = new Line() ; l.Point p = new l.Point();
考题
Given:WhichchangecanyoumaketoTargetwithoutaffectingClient?()
A.Line4ofclassTargetcanbechangedtoreturni++;B.Line2ofclassTargetcanbechangedtoprivateinti=1;C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;
考题
Given:Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()
A.Point p = Line.getPoint();B.Line.Point p = Line.getPoint();C.Point p = (new Line()).getPoint();D.Line.Point p = (new Line()).getPoint();
考题
窗体的左右两端各有1直线,名称分别为Line1、Line2;名称为Shape1的圆靠在左边的Linel直线上(见图);另有1个名称为Timer1的计时器控件,其Enabled属性值是True。要求程序运行后,圆每秒向右移动100,当圆遇到Line2时则停止移动。为实现上述功能,某人把计时器的Interva1属性设置为1000,并编写了如下程序:Private Sub Timer1 Timer( )For k=Line1.X1 To Line2.X1 Step 100If Shape1.Left+Shape1.widthLine2.X1 ThenShape1.Left=Shape1.Left+100End IfNext kEnd Sub运行程序时发现圆立即移动到了右边的直线处,与题目要求的移动方式不符。为得到与题目要求相符的结果,下面修改方案中正确的是( )。A.把计时器的Interval属性设置为1B.把For k=line1.X1 To Line2.X1 Step 100和Next k两行删除C.把For k=Line1.X1 To Line2.X1Step 100改为For k=Line2.X1 To Line1.X1 Step 100D.把If Shape1.Left+Shepe1.WidthLine2.X1 Then改为If Shape1.LeftLine2.X1 Then
考题
Which statement about the deck line is TRUE ________.A.The top of the deck line is marked at the highest point of the freeboard deck,including camber,at the midships pointB.A vessel with wooden planks on a steel deck will have the deck line marked at the intersection of the upper line of the wood sheathing with the side shellC.The deck edge is marked at the intersection of the freeboard deck with the side shell,at the lowest point of sheer,with the vessel at even trimD.On a vessel with a rounded stringer-sheer plate,the deck line is marked where the stringer plate turns down from the plane of the deck line
考题
使用VC6打开考生文件夹下的工程RevProj14。此工程包含一个源程序文件RevMain14.cpp,但该程序中类的定义有错误。请改正程序中的错误,使它能得到正确结果。注意,不要改动main函数,不得删行或增行,也不得更改程序的结构。源程序文件RevMain14.cpp中的程序清单如下://RevMain14.cppinclude<iostream>include<math>using namespace std;class Point{private:double x;double y;public:Point(){}void Point(double x1,double y1){x=x1;y=y1;}void setvalue(double x,double y){x=x;y=y;}double getx (){return x;}double gety()}return y;}void print(){cout<<"x="<<x<<",y= "<<y<<end1;}~Point(){}};class Line{private:Point p1;Point p2;double width;public:Line(double x1,double y1,double x2,double y2,double d):p1(x1,y1),p2(x2,y2){width=d;}~Line(){}void displength(){double 1;1=sqrt((p1.getx{)-p2.getx())*(p1.getx()-p2-getx())+(p1.gety()-p2.gety())*(p1.gety()-p2.gety()));cout<<"the length of Line is "<<1<<end1;}};int main(){Line *p1;Line 1(5,15,25,35,0.5);p1=1;p1->displength();return 0;}
考题
10. class Line { 11. public static class Point { } 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?() A、 Point p = new Point();B、 Line.Point p = new Line.Point();C、 The Point class cannot be instatiated at line 15.D、 Line 1 = new Line() ; 1.Point p = new 1.Point();
考题
55.int[]x={1,2,3,4,5}; 56.inty[]=x; 57.System.out.println(y[2]); Whichistrue?() A、Line 57 will print the value 2.B、Line 57 will print the value 3.C、Compilation will fail because of an error in line 55.D、Compilation will fail because of an error in line 56.
考题
1. public class Exception Test { 2. class TestException extends Exception {} 3. public void runTest() throws TestException {} 4. public void test() /* Point X */ { 5. runTest(); 6. } 7. } At Point X on line 4, which code is necessary to make the code compile?() A、 No code is necessary.B、 throws ExceptionC、 catch ( Exception e )D、 throws RuntimeExceptionE、 catch ( TestException e)
考题
在显示多条小区覆盖连线时,需要勾选哪几项() 1.Leaye trail 2.Serving cell line 3.Line to added cell 4.Line to removed cell A、1、3B、2、3C、1、2D、2、4
考题
10. class Line { 11. public class Point { public int x,y; } 12. public Point getPoint() { return new Point(); } 13. } 14. class Triangle { 15. public Triangle() { 16. // insert code here 17. } 18. } Which code, inserted at line 16, correctly retrieves a local instance of a Point object?() A、 Point p = Line.getPoint();B、 Line.Point p = Line.getPoint();C、 Point p = (new Line()).getPoint();D、 Line.Point p = (new Line()).getPoint();
考题
单选题Given: Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()A
Line 16B
Line 17C
Line 18D
Line 19
考题
单选题设窗体上有2个直线控件Line1和Line2,若使两条直线相连接,需满足的条件是( )。A
Line1.X1=Line2.X2且Line1.Y1=Line2.Y2B
Line1.X1=Line2.Y1且Line1.Y1=Line2.X1C
Linel.X2=Line2.X1且Line1.Y1=Line2.Y2D
Line1.X2=Line2.X1且Line1.Y2=Line2.Y2
考题
单选题窗体的左右两端各有一条直线,名称分别为Line1、Line2;名称为Shape1的圆靠在左边的Line1直线上,如下图所示;另有一个名称为Timer1的计时器控件,其Enable属性值是True。要求程序运行后,圆每秒向右移动100,当圆遇到Line2时则停止移动。为实现上述功能,某人把计时器的Interval属性设置为1000,并编写了如下程序:运行程序时发现圆立即移动到了右边的直线处,与题目要求的移动方式不符。为得到与题目要求相符的结果下面修改方案中正确的是( )。A
把设计器的Interval属性设置为1B
把For k=Line1.X1 To Line2.X1 Step 100和Next k两行删除C
把Fork=Line1.X1 To Line2.X1 Step 100改为For k=Line2.X1 To Line1.X1 Step l00D
把If Shape1Left+Shape1.WidthLine2.X1 Then改为If Shape1.LeftLine2.X1 Then
考题
单选题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
考题
单选题10. class Line { 11. public class Point { public int x,y; } 12. public Point getPoint() { return new Point(); } 13. } 14. class Triangle { 15. public Triangle() { 16. // insert code here 17. } 18. } Which code, inserted at line 16, correctly retrieves a local instance of a Point object?()A
Point p = Line.getPoint();B
Line.Point p = Line.getPoint();C
Point p = (new Line()).getPoint();D
Line.Point p = (new Line()).getPoint();
考题
单选题If each of the equations below is graphed on the xy-plane, which one will produce a line with a positive slope containing the point (3, 2)?A
x+y=5B
x - y = 1C
3x-2y = 10D
x2 -y=5E
x +y2 = 7
考题
单选题Which statement is TRUE about placing the eyes of two mooring lines on the same bollard?()A
Put one line at the low point and one at the high point of the bollard so they don't touchB
Take the eye of the second line up through the eye of the first line before putting the second line on the bollardC
Never put two mooring lines on the same bollardD
The mooring line forward should be put on the bollard first
考题
单选题10. class Line { 11. public static class Point { } 12. } 13. 14. class Triangle { 15. // insert code here 16. } Which code, inserted at line 15, creates an instance of the Point class defined in Line?()A
Point p = new Point();B
Line.Point p = new Line.Point();C
The Point class cannot be instatiated at line 15.D
Line 1 = new Line() ; 1.Point p = new 1.Point();
考题
单选题Line l passes through the origin and is perpendicular to the line given by the equation 2x + y = 8. Which of the following points is NOT on line l?A
(-4, -2)B
(-1,1)C
(2,1)D
(4,2)E
(7,3.5)
热门标签
最新试卷