A: import
B: mile1
C: (red)
D: "red"
举一反三
- 以下哪项是有效的标识符? A: import B: mile1 C: (red) D: "red"
- 绘制一个红色的五角星,下列程序哪个是正确的? A: from turtle import * fillcolor("red") begin_fill() while True: forward(300) right(144) if abs(pos()) < 1: break end_fill() B: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(155) if abs(pos()) < 1: break end_fill() C: ffrom turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if pos() < 1: break end_fill() D: from turtle import * fillcolor("red") begin_fill() while True: forward(200) right(144) if abs(pos()) < 2: break end_fill()
- 以下()是类选择器。 A: .style1{color:red;} B: C: style1{color:red;} D: @style1{color:red;} E: style1{color:red;}
- 以下哪些属于标签选择器?() A: #1h{color:red;} B: h1{color:red;} C: h1{color:red;} D: #h1{color:red;}
- 若要设置网页的背景颜色为红色,以下标记中正确的是()。 A: ackground:red; B: color:red; C: gcolor:red; D: ackgroundcolor:red;
内容
- 0
下列哪项是正确的线性渐变的写法?( ) A: background:linear-gradient(red,blue); B: background:linear-gradient(45deg,red,blue); C: background-image:linear-gradient(red,blue); D: background-image:linear-gradient(45deg,red,blue);
- 1
下面哪个运用了ID选择器( )。 A: a{color:red;} B: red{color:red;} C: D: red{color:red;} E: [att=red]{color:red;}
- 2
以下选项中哪个是给p标签添加颜色的jQuery语法()。 A: $("p").css("color","red") B: p.css("color","red") C: p.style.color="red" D: p.style="red"
- 3
假设一个线性表包含元素{"red","green","red","green"}.下列代码执行后,线性表是______________?Stringelement="red";for(inti=list.size()-1;i>;=0;i--)if(list.get(i).equals(element))list.remove(element); A: {"red","red","green"} B: {"red","green"} C: {"green","green"} D: {"green"} E: {}
- 4
假设一个线性表包含元素{"red","green","red","green"}.下列代码执行后,线性表是______________?Stringelement="red";for(inti=list.size()-1;i>=0;i--)if(list.get(i).equals(element))list.remove(element); A: {"red","red","green"} B: {"red","green"} C: {"green","green"} D: {"green"} E: {}