更多“( )Is red a strong color or a peaceful color? A.Yes, it is.B.No, it isn’t.C.A ”相关问题
  • 第1题:

    以下关于样式表项的定义中,错误的是:()。

    A.H1, H2 {color:red}

    B.H1 B{color:red}

    C.H1#color_red{color:red}

    DA:Active {color:red}


    参考答案:C

  • 第2题:

    以下选项中不能正确把c1定义成结构体变量的是

    A.typedef struct {int red: int green: int blue; } COLOR; COLOR c1;

    B.struct color c1 {int red int green: int blue; };

    C.struct color {int red , int green : int blue : )cl;

    D.struct {int red; int green; int blue } c1 ;


    正确答案:B
    解析:本题考核的知识点是结构体类型定义。结构体类型的定义格式为:strcut结构体名{成虽说明列表};结构体变量的定义有3种形式:第一种,定义结构体型的同时定义结构体变量,如:strcut结构体名{成员说明列表}变量;选项C属于这种情况,故选项C正确:第二种,先定义一个结构体类型,然后使用该类型来定义结构体变量,如:strcutstudent{成员说明列表}:student变量;选项A属于这种情况,故选项A正确;第三种,定义一个无名称的结构体类型的同时定义结构体变量,如:strcutstudent{成员说明列表}变量;选项D属于这种情况,故选项D正确.所以,4个选项中选项B符合题意。

  • 第3题:

    publicclassBall{publicenumColor{RED,GREEN,BLUE};publicvoidfoo(){//insertcodehere{System.out.println(c);}}}Whichcodeinsertedatline14causesthefoomethodtoprintRED,GREEN,andBLUE?()

    A.for(Colorc:Color.values())

    B.for(Colorc=RED;c<=BLUE;c++)

    C.for(Colorc;c.hasNext();c.next())

    D.for(Colorc=Color[0];c<=Color[2];c++)

    E.for(Colorc=Color.RED;c<=Color.BLUE;c++)


    参考答案:A

  • 第4题:

    以下选项中不能正确把c1定义成结构体变量的是

    A.typedef struct { int red; int green;; int blue; }COLOR; COLOR cl;

    B.struct color cl { int red; int green; int blue; };

    C.struet color { int red; int green; int blue; }c1;

    D.struct { int red; int green; int blue; }cl;


    正确答案:B
    解析:结构体类型的定义格式为:
      stract结构体名
      成员说明列表};
      结构体变量的定义有3种形式:第一种,定义结构体类型的同时定义结构体变量,如: street结构体名{成员说明列表}变量;第二种,先定义一个结构体类型,然后使用该类型来定义结构体变量,如:strect student{成员说明列表};student变量;第三种,定义一个无名称的结构体类型的同时定义结构体变量,如:strect student{成员说明列表}变量;。

  • 第5题:

    以下CSS选择符定义中,______属于类选择符。

    A.P{color:red; font-size:12pt}
    B.p.blue{color:blue}
    C.#Red{color:red;)
    D.PEM {background: yellow}

    答案:B
    解析:
    本题考查CSS的基础知识。CSS(Cascading Style Sheets,层叠样式表,简称为样式表)是用于(增强)控制网页样式并允许将样式信息与网页内容分离的一种标记性语言。在CSS基本语法结构中,样式表的结构为:选择符{属性1:值1;属性2:值2;…}其中,选择符有如下几种形式:(1)HTML标记。任何HTML标记都可以是一个CSS的选择符,如P{color:red;font-size:12pt}。(2)类选择符。一个选择符能有不同的CLASS(类),因而允许同一元素有不同的样式。格式如下:标记名:类名{属性1:值1;属性2:值2;…}(3)ID选择符。ID选择符个别地定义每个元素的成分。这种选择符应该尽量少用,因为它具有一定的局限。一个ID选择符的指定要有指示符“#”在名字前面。(4)关联选择符。关联选择符是用空格隔开的两个或更多的单一选择符组成的字符串。这些选择符可以指定一般属性,而且因为层叠顺序的规则,它们的优先权比单一的选择符大。

  • 第6题:

    hr语法格式正确的是()。

    • A、〈hrwidth="500"color="red"align="center"/〉
    • B、〈hr〉〈/hr〉
    • C、〈hrsize="1"color="red"width="400"/〉
    • D、〈hralign="top"/〉

    正确答案:A,C

  • 第7题:

    color属性用于定义文本的颜色,以下写法正确的是()

    • A、h2{color:red;}
    • B、h2{color:"red";}
    • C、h2{color:"#F60";}
    • D、h2{color:#FF6600;}

    正确答案:A,D

  • 第8题:

    序号伪类选择器语法格式正确的是()。

    • A、li:first-child{color:red;}
    • B、li:last-child(1){color:red;}
    • C、li:nth-child(odd){color:red;}
    • D、li:nth-last-child(5){color:red;}

    正确答案:A,C,D

  • 第9题:

    以下选项中哪个是给p标签添加颜色的jQuery语法()。

    • A、$("p").css("color","red")
    • B、p.css("color","red")
    • C、p.style.color="red"
    • D、p.style="red"

    正确答案:A

  • 第10题:

    单选题
    设置鼠标移动到链接上时候文字变成红色如何设置?()
    A

    a:link{color:red;}

    B

    a:active{color:red;}

    C

    a:visited{color:red;}

    D

    a:hover{color:red;}


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

  • 第11题:

    单选题
    public class Ball {  public enum Color { RED, GREEN, BLUE };  public void foo() {  // insert code here  { System.out.println(c); }  }  }  Which code inserted at line 14 causes the foo method to print RED, GREEN, and BLUE?()
    A

     for( Color c : Color.values())

    B

     for( Color c = RED; c <= BLUE; c++)

    C

     for( Color c; c.hasNext() ; c.next())

    D

     for( Color c = Color[0]; c <= Color[2]; c++)

    E

     for( Color c = Color.RED; c <= Color.BLUE; c++)


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

  • 第12题:

    单选题
    A mooring buoy,if lighted,shows which color light?()
    A

    Yellow

    B

    White

    C

    Blue

    D

    Any color except red or green


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

  • 第13题:

    可以设置超链接被点击过后样式是红色字体的是()。

    A.a:link{color:red}

    B.a:hover{color:red}

    C.a:visited{color:red}

    D.a:active{color:red}


    答案:C

    解析:a:link :是未被访问的样式,可以在里面加很多东西,比如说去掉下划线,换颜色等功能都能在这里实现;

    a:visited :是已被点击后的样式,也可以在里面加很多元素,可以去下划线,改颜色,放大等功能;

    a:hover :这个是鼠标悬停的样式,是把鼠标停在超链接的位置的时候可以设置变颜色;

    a:active :是能把鼠标点上去的时候,瞬间出的样式,在很多网站上都有这种样式的


  • 第14题:

    YoucreateaWebpagethatcontainsthefollowingcode.Youneedtoensurethatwhentheuserclicksaniteminthelist,thetextcolorofthe"Welcome!"messagewillchange.Whichdeclarationshouldyouuse?()

    A.<ulid="color"> <lionclick="changeColor(this.innerText);">Black</li><lionclick="changeColor(this.innerText);">Red</li></ul>

    B.<ulid="color"> <lionclick="changeColor(this.style.color);">Black</li><lionclick="changeColor(this.style.color);">Red</li></ul>

    C.<ulid="color"><li><aonfocus="changeColor(this.innerText);">Red</a></li><li><aonfocus="changeColor(this.innerText);">Black</a></li></ul>

    D.<ulid="color"> <li><aonfocus="changeColor(this.innerText);">Red</a></li><li><aonfocus="changeColor(this.innerText);">Black</a></li></ul>


    参考答案:A

  • 第15题:

    以下选项中不能正确把cl定义成结构体变量的是

    A.typedef struct { int red; int green; int blue; } COLOR; COLOR cl;

    B.struct color cl { int red; int green; int blue; }

    C.struct color { int red; int green; int blue; } cl;

    D.struct { int red; int green; int blue; } cl;


    正确答案:B
    解析:选项A)是把结构体类型改名后定义为变量cl。选项C),D)则是在定义结构体类型时定义变量,而选项B)不符合结构体类型定义的语法规则。

  • 第16题:

    B

    Have you ever walked into a room and felt relaxed?It could be because the walls were painted blue, a calm and peaceful color .Sometimes colors can affect our feelings and moods.Some colors can make us feel calm and peaceful.Blue is one of these.Wearing blue clothes or sleeping in a blue room is good for our mind and body, because this color makes a good feeling.Blue is also the color of sadness, so you may say you’re feeling blue when you are feeling sad.White is another calm color.You should wear white clothes if you are feeling nervous.White is also the color of purity(纯洁).Many women like to be in white on their wedding day.Green is the color of nature.It can give us more energy when we are feeling tired.Some colors can make you feel warm.These colors can give you a happy feeling.People who live in cold climates use warm colors in their homes like orange and yellow instead of white and blue.Orange shows joy.It can bring you success and cheer you up when you are feeling sad.Yellow is the color of the sun, so it can remind you of a warm, sunny day.Yellow is also the color of wisdom.Some people prefer this color when they study for exams.For example, they may use yellow school things.Red is one of the strong colors.Wearing red often makes us active.

    In short, we can try out different colors if we aren’t feeling our best.

    根据短文内容,选择最佳答案。 第 6 题 ( )According to the passage, which color of the following can make you feel relaxed?

    A.Yellow.

    B.Orange.

    C.Red.

    D.White.


    正确答案:D

  • 第17题:

    下列哪个CSS语法是正确的?()

    • A、body.color=red
    • B、{body.color=red}
    • C、{body:color=red}
    • D、body{color:red}

    正确答案:D

  • 第18题:

    要设置以访问过的连接颜色为红色,下列选项正确的是()。

    • A、A:link{color:red}
    • B、A:active{color:red}:
    • C、A:visited{color:red}
    • D、A:visite(color:red)

    正确答案:C

  • 第19题:

    设置文字颜色的语法格式正确的是()。

    • A、font-color:red;
    • B、color:#ff0000;
    • C、color:00ff00;
    • D、color:rgb(255,0,0);

    正确答案:B,D

  • 第20题:

    设置鼠标移动到链接上时候文字变成红色如何设置?()

    • A、a:link{color:red;}
    • B、a:active{color:red;}
    • C、a:visited{color:red;}
    • D、a:hover{color:red;}

    正确答案:D

  • 第21题:

    在HTML中,下面()是已被访问过呈红色文字的样式。

    • A、a:link{color:red;}
    • B、a:hover{color:red;}
    • C、a:visited{color:red;}
    • D、a:active{color:red;}

    正确答案:C

  • 第22题:

    单选题
    以下选项中哪个是给p标签添加颜色的jQuery语法()。
    A

    $(p).css(color,red)

    B

    p.css(color,red)

    C

    p.style.color=red

    D

    p.style=red


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

  • 第23题:

    单选题
    要设置以访问过的连接颜色为红色,下列选项正确的是()。
    A

    A:link{color:red}

    B

    A:active{color:red}:

    C

    A:visited{color:red}

    D

    A:visite(color:red)


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