问答题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 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.

相似考题
参考答案和解析
正确答案: 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.”相关问题
  • 第1题:

    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();


    参考答案:B

  • 第2题:

    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();


    参考答案:B

  • 第3题:

    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();


    参考答案:D

  • 第4题:

    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 point

    B.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 shell

    C.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 trim

    D.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


    正确答案:B

  • 第5题:

    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();

    正确答案:B

  • 第6题:

    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 Exception
    • C、 catch ( Exception e )
    • D、 throws RuntimeException
    • E、 catch ( TestException e)

    正确答案:B

  • 第7题:

    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();

    正确答案:D

  • 第8题:

    单选题
    Given: Which line of code marks the earliest point that an object referenced by intObj becomes a candidate for garbage collection?()
    A

    Line 16

    B

    Line 17

    C

    Line 18

    D

    Line 19


    正确答案: A
    解析: 暂无解析

  • 第9题:

    单选题
    窗体的左右两端各有一条直线,名称分别为Line1、Line2;名称为Shape1的圆靠在左边的Line1直线上,如下图所示;另有一个名称为Timer1的计时器控件,其Enable属性值是True。要求程序运行后,圆每秒向右移动100,当圆遇到Line2时则停止移动。为实现上述功能,某人把计时器的Interval属性设置为1000,并编写了如下程序:运行程序时发现圆立即移动到了右边的直线处,与题目要求的移动方式不符。为得到与题目要求相符的结果下面修改方案中正确的是(  )。
    A

    把设计器的Interval属性设置为1

    B

    把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 l00

    D

    把If Shape1Left+Shape1.Width<Line2.X1 Then改为If Shape1.Left<Line2.X1 Then


    正确答案: B
    解析:
    计时器会每秒触发一次,而每次触发后只需将圆向右移动100即可,所以应将For k=Line1.X1 To Line2.X1 Step 100和Next k两行删除。

  • 第10题:

    单选题
    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();


    正确答案: A
    解析: 暂无解析

  • 第11题:

    单选题
    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 touch

    B

    Take the eye of the second line up through the eye of the first line before putting the second line on the bollard

    C

    Never put two mooring lines on the same bollard

    D

    The mooring line forward should be put on the bollard first


    正确答案: C
    解析: 暂无解析

  • 第12题:

    单选题
    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)


    正确答案: A
    解析:
    2x+y=8,所以y =-2x + 8,因为函数是斜截式且斜率为-2。垂直于x-y平面的的直线的斜率互为反倒数。所以斜率Line1的斜率为1/2,又因为Line l经过原点且与y =-2x + 8垂直。所以Line 1为y =(1/2)x。以上四个选项中可知只有B点在Line l上。

  • 第13题:

    阅读下列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();

    }


    正确答案:(1)Point &p (2)Linc::Line(int xint y int k):Point(xy) (3)Line::Line(Line &s):Point(s) (4)Point::set(x y) (5)Point::print()
    (1)Point &p (2)Linc::Line(int x,int y, int k):Point(x,y) (3)Line::Line(Line &s):Point(s) (4)Point::set(x, y) (5)Point::print() 解析:(1)Point &p
    Point拷贝构造函数的形参必须是Point对象的引用。
    (2)Linc::Line(int x,int y, int k):Point(x,y)
    Line的构造函数必须先调用Point构造函数构造Line的基类Point。
    (3)Line::Line(Line &s):Point(s)
    Line的拷贝构造函数必须先调用Point拷贝构造函数来构造并复制Line对象的基类 Point部分。
    (4)Point::set(x, y)
    Line的set成员函数必须通过Point的set成员函数才能访问基类的私有成员。而且在 set名前必须加成员名限定Point::,以区别Line的set函数。
    (5)Point::print()
    Line的print成员函数必须通过Point的print成员函数才能访问打印基类的私有成员。而且在print名前必须加成员名限定Point::,以区别Line的print函数。

  • 第14题:

    Given:WhichchangecanyoumaketoTargetwithoutaffectingClient?()

    A.Line4ofclassTargetcanbechangedtoreturni++;

    B.Line2ofclassTargetcanbechangedtoprivateinti=1;

    C.Line3ofclassTargetcanbechangedtoprivateintaddOne(){

    D.Line2ofclassTargetcanbechangedtoprivateIntegeri=0;


    参考答案:D

  • 第15题:

    窗体的左右两端各有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 100

    If Shape1.Left+Shape1.width<Line2.X1 Then

    Shape1.Left=Shape1.Left+100

    End If

    Next k

    End Sub

    运行程序时发现圆立即移动到了右边的直线处,与题目要求的移动方式不符。为得到与题目要求相符的结果,下面修改方案中正确的是( )。

    A.把计时器的Interval属性设置为1

    B.把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 100

    D.把If Shape1.Left+Shepe1.Width<Line2.X1 Then改为If Shape1.Left<Line2.X1 Then


    正确答案:B
    B。【解析】计时器的Interval属性为计时器计时间隔,具有自动触发的功能,每一次触发都会调用Timer事件(实现类似循环的效果),所以不应该再在里面写上该For循环。

  • 第16题:

    使用VC6打开考生文件夹下的工程RevProj14。此工程包含一个源程序文件RevMain14.cpp,但该程序中类的定义有错误。请改正程序中的错误,使它能得到正确结果。

    注意,不要改动main函数,不得删行或增行,也不得更改程序的结构。

    源程序文件RevMain14.cpp中的程序清单如下:

    //RevMain14.cpp

    include<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;

    }


    正确答案:

  • 第17题:

    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.

    正确答案:B

  • 第18题:

    在显示多条小区覆盖连线时,需要勾选哪几项() 1.Leaye trail 2.Serving cell line 3.Line to added cell 4.Line to removed cell

    • A、1、3
    • B、2、3
    • C、1、2
    • D、2、4

    正确答案:C

  • 第19题:

    当ADSL线路有问题是可以把网线插在()

    • A、Line4
    • B、Line3
    • C、Line2
    • D、Line1

    正确答案:D

  • 第20题:

    单选题
    设窗体上有2个直线控件Line1和Line2,若使两条直线相连接,需满足的条件是(  )。
    A

    Line1.X1=Line2.X2且Line1.Y1=Line2.Y2

    B

    Line1.X1=Line2.Y1且Line1.Y1=Line2.X1

    C

    Linel.X2=Line2.X1且Line1.Y1=Line2.Y2

    D

    Line1.X2=Line2.X1且Line1.Y2=Line2.Y2


    正确答案: D
    解析:
    直线控件的X1、Y1和X2、Y2属性分别表示直线两个端点的坐标,即(X1,Y1)和(X2,Y2)。如果要使两条直线相连,显然这两条直线的某一端点的坐标相同才行。因此本题需要Line1.X1=Line2.X1且Line1.Y1=Line2.Y1,或Line1.X1= Line2.X2且Line1.Y1=Line2.Y2,或Line1.X2=Line2.X1且Line1.Y2=Line2.Y1,或Line1.X2=Line2.X2且 Line1.Y2=Line2.Y2。

  • 第21题:

    单选题
    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+2

    B

    y=2x+1

    C

    y=-x+5

    D

    y=-2

    E

    y=-6


    正确答案: A
    解析:
    切线指与圆相交且与圆只有一个焦点的线。A、B与圆不相交。C、D 与圆相交且有两个交点。只有E项符合。

  • 第22题:

    单选题
    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=5

    B

    x - y = 1

    C

    3x-2y = 10

    D

    x2 -y=5

    E

    x +y2 = 7


    正确答案: A
    解析:
    因为直线方程式不包含带平方的项,如x2 或y2 ,所以D和E不正确,因为它们不是直线。将点(3,2)代入到各个选项中,C项不符合。因为A项斜率为-1,不符合,故选B。

  • 第23题:

    单选题
    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();


    正确答案: B
    解析: 暂无解析