更多“下面()不是文本的显示方式。A、block(块)B、line(行)C、double(双线)D、list-item(列表)”相关问题
  • 第1题:

    阅读下列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函数。

  • 第2题:

    Given:35.Stringname="JaneDoe";36.int$age=24;37.Double_height=123.5;38.double~temp=37.5;Whichtwostatementsaretrue?()

    A.Line35willnotcompile.

    B.Line36willnotcompile.

    C.Line37willnotcompile.

    D.Line38willnotcompile.


    参考答案:A, D

  • 第3题:

    关于下面HTML代码行,描述正确的是______。
    1. 巴西</li>
    2. 意大利</li>
    3. 德国</li></ol>A.

    关于下面HTML代码行,描述正确的是______。 <ol> <li>巴西</li> <li>意大利</li> <li>德国</li> </ol>

    A.无序列表显示文本

    B.有序列表显示文本

    C.一组单选按钮

    D.一组复选框


    正确答案:B
    解析:ol>/ol>是有序列表。列表项HTML代码是li>/li>,无序列表HTML代码是ul>/ul>。

  • 第4题:

    文本框只能显示单行文本,要显示多行文本应该使用列表框控件。

    A

    B



  • 第5题:

    使用CSS,要隐藏元素,应选用()显示方式。

    • A、display:none
    • B、display:block
    • C、display:inline
    • D、display:list-item

    正确答案:A

  • 第6题:

    在fireworks中,在固定宽度文本块或自动调整大小文本块之间切换可以进行下面哪个操作?()

    • A、在文本块内部双击
    • B、双击该文本块右上角的圆或正方形
    • C、拖动该文本块右上角的圆或正方形
    • D、在文本块外框上双击

    正确答案:B

  • 第7题:

    在Dreamweaver中插入单行文本域时,下面不是文本域形式的是:()

    • A、单行域
    • B、口令域<密码>
    • C、多行域
    • D、限制行域

    正确答案:D

  • 第8题:

    Given: 35.String #name = "Jane Doe"; 36.int $age = 24; 37.Double _height = 123.5; 38.double ~temp = 37.5; Which two statements are true?()

    • A、Line 35 will not compile.
    • B、Line 36 will not compile.
    • C、Line 37 will not compile.
    • D、Line 38 will not compile.

    正确答案:A,D

  • 第9题:

    关于“文本窗口”和“命令窗口”,下面说法错误的是()。

    • A、文本窗口与命令窗口相似,用户可以在其中输入命令,查看提示和信息。
    • B、文本窗口显示当前工作任务的完整的命令历史记录。
    • C、命令窗口默认显示为3行
    • D、只有命令窗口打开时才能显示文本窗口

    正确答案:D

  • 第10题:

    11. double d = Math.random();   Which is true about d after line 11?()  

    • A、 d >= 1.0
    • B、 0.0 <= d < 1.0
    • C、 0.0 <= d < Double.MAX_VALUE
    • D、 0.0 <= d <= Double.MAX_VALUE
    • E、 Double.MIN_VALUE <= d < Double.MAX_VALUE

    正确答案:B

  • 第11题:

    单选题
    A block that can be opened at the hook or shackle end to receive a bight of the line is a().
    A

    bight block

    B

    gin block

    C

    heel block

    D

    snatch block


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

  • 第12题:

    判断题
    文本框只能显示单行文本,要显示多行文本应该使用列表框控件。
    A

    B


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

  • 第13题:

    下面哪个方法与题目中的不是重载方法public int max(int x,int y)

    A.public double max(double x,double y)

    B.publicintmax(intn,int k)

    C.publicintmax(intx,int y, int z)

    D.public double max(double n,double k)


    正确答案:B

  • 第14题:

    在Dreamweaver中插入单行文本域时,下面不是文本域形式的是()

    A、限制行域

    B、单行域

    C、密码域

    D、多行域


    答案:A

  • 第15题:

    使用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;

    }


    正确答案:

  • 第16题:

    文本框中只能显示单行文本,要显示多行文本应该使用列表框控件。


    正确答案:错误

  • 第17题:

    在Illustrator界面的【段落】面板中的“对齐”按钮的主要作用是()。

    • A、设置段落中各行文本的对齐方式效果
    • B、选择文本块或文本路径
    • C、设置首行悬挂缩进
    • D、设置段落首行缩进

    正确答案:A

  • 第18题:

    Erase Tool(橡皮擦工具)选项栏中有哪些橡皮类型:()

    • A、Paintbrush(画笔)
    • B、Airbrush(喷枪)
    • C、Line(直线)
    • D、Block(块)

    正确答案:A,B,D

  • 第19题:

    文本框只能显示单行文本,要显示多行文本应该使用列表框控件。


    正确答案:错误

  • 第20题:

    在1个突发脉冲(burst)中,可能会传送()

    • A、1/8个无线块(Radio Block);
    • B、1/4个无线块(Radio Block);
    • C、1个无线块(Radio Block);
    • D、4个无线块(Radio Block);

    正确答案:B

  • 第21题:

    35.String #name="Jane Doe";36.int$age=24;37.Double_height=123.5;38.double~temp=37.5;Which two are true?()

    • A、Line 35 will not compile.
    • B、Line 36 will not compile.
    • C、Line 37 will not compile.
    • D、Line 38 will not compile.

    正确答案:A,D

  • 第22题:

    EraseTool(橡皮擦工具)选项栏中有哪些橡皮类型()

    • A、Paintbrush(画笔)
    • B、Airbrush(喷枪)
    • C、Line(直线)
    • D、Block(块)

    正确答案:A,B,D

  • 第23题:

    单选题
    在Illustrator界面的【段落】面板中的“对齐”按钮的主要作用是()。
    A

    设置段落中各行文本的对齐方式效果

    B

    选择文本块或文本路径

    C

    设置首行悬挂缩进

    D

    设置段落首行缩进


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