大学职业资格刷题搜题APP
下载APP
课程
题库模板
WORD模板下载
EXCEL模板下载
题库创建教程
创建题库
登录
logo - 刷刷题
创建自己的小题库
搜索
【单选题】

If you need to use the font "arial" to draw a solid text with a height of 30px on the canvas, fill the code ( ) in the blank space.ctx.strokeStyle="blue";ctx.font="30px arial";________('ABC', 0, 300);

A.
ctx.strokeText
B.
ctx.stroke
C.
ctx.fillText
D.
ctx.fill
手机使用
分享
复制链接
新浪微博
分享QQ
微信扫一扫
微信内点击右上角“…”即可分享
反馈
收藏 - 刷刷题收藏
举报
刷刷题
参考答案:
举一反三

【单选题】Which of the following statements about audio and video attributes is incorrect? ( )

A.
We can use the <audio> tag to import audio files.
B.
When using the <audio> tag, it can be abbreviated as <audio src = "" loop autoplay controls>.
C.
In the <audio> tag, we use src to import audio files.
D.
In the <audio> tag, we must use source to import audio files.

【单选题】Draw a line on canvas, requiring the start coordinate to be (0,0), the end coordinate to be (100,50), and which one is correct for the following three blanks? ( )<canvas id="myCanvas" width="200px...

A.
ctx.moveFrom(0,0)ctx.lineTo(100,50)ctx.stroke()
B.
ctx.lineFrom(0,0)ctx.lineTo(100,50) ctx.stroke()
C.
ctx.moveTo(0,0)ctx.lineTo(100,50)ctx.stroke()
D.
ctx.moveTo(0,0)ctx.lineTo(100,50) ctx.strokeText()

【单选题】Using canvas to draw a graphic, and which option is correct about the following code snippets? ( )ctx.beginPath();ctx.arc(50,170,50,0,Math.PI,false);ctx.stroke();ctx.closePath();

A.
The graphic is a clockwise circle.
B.
The graphic is a counterclockwise circle.
C.
The graphic is a clockwise semicircle.
D.
The graphic is a counterclockwise semicircle.

【单选题】Which of the following statements about svg is incorrect? ( )

A.
Svg can be either a file or a tag.
B.
Svg uses xml format to define graphics.
C.
Svg refers to scalable vector graphics.
D.
The graphics quality of svg will decrease after enlargement.

【单选题】Using svg element to create a rectangle, which of the following statements is incorrect? ( )

A.
Use the <rect> tag to create a rectangle.
B.
Use style="fill: rgb(255,0,0)" to fill the color.
C.
Use style="border-width: 10" to define the border size.
D.
Use style="stroke:rgb(0,0,0)" to define the border color.

【单选题】Use svg to draw a circle with center at (100,100), radius 50, border width 5 and color blue, the code is ( ).

A.
<circle x="100" y="100" r="50" stroke-color="blue" stroke-width="5"></circle>
B.
<circle x="100" y="100" r="50" stroke="blue" stroke-width="5"></circle>
C.
<circle cx="100" cy="100" r="50" stroke="blue" stroke-width="5"></circle>
D.
<circle cx="100" cy="100" r="50" stroke-color="blue" stroke-width="5"></circle>

【单选题】Compared with the common image format, which of the following is not an advantage of svg? ( )

A.
Svg graphics can be searched, indexed and scripted, but not compressed.
B.
Svg graphicscan be scaled.
C.
Svg graphics can be printed with high quality at any resolution.
D.
Svg can be enlarged without degradation of graphicsquality.
相关题目:
【单选题】Which of the following statements about audio and video attributes is incorrect? ( )
A.
We can use the <audio> tag to import audio files.
B.
When using the <audio> tag, it can be abbreviated as <audio src = "" loop autoplay controls>.
C.
In the <audio> tag, we use src to import audio files.
D.
In the <audio> tag, we must use source to import audio files.
【单选题】Draw a line on canvas, requiring the start coordinate to be (0,0), the end coordinate to be (100,50), and which one is correct for the following three blanks? ( )<canvas id="myCanvas" width="200px...
A.
ctx.moveFrom(0,0)ctx.lineTo(100,50)ctx.stroke()
B.
ctx.lineFrom(0,0)ctx.lineTo(100,50) ctx.stroke()
C.
ctx.moveTo(0,0)ctx.lineTo(100,50)ctx.stroke()
D.
ctx.moveTo(0,0)ctx.lineTo(100,50) ctx.strokeText()
【单选题】Using canvas to draw a graphic, and which option is correct about the following code snippets? ( )ctx.beginPath();ctx.arc(50,170,50,0,Math.PI,false);ctx.stroke();ctx.closePath();
A.
The graphic is a clockwise circle.
B.
The graphic is a counterclockwise circle.
C.
The graphic is a clockwise semicircle.
D.
The graphic is a counterclockwise semicircle.
【单选题】Which of the following statements about svg is incorrect? ( )
A.
Svg can be either a file or a tag.
B.
Svg uses xml format to define graphics.
C.
Svg refers to scalable vector graphics.
D.
The graphics quality of svg will decrease after enlargement.
【单选题】Using svg element to create a rectangle, which of the following statements is incorrect? ( )
A.
Use the <rect> tag to create a rectangle.
B.
Use style="fill: rgb(255,0,0)" to fill the color.
C.
Use style="border-width: 10" to define the border size.
D.
Use style="stroke:rgb(0,0,0)" to define the border color.
【单选题】Use svg to draw a circle with center at (100,100), radius 50, border width 5 and color blue, the code is ( ).
A.
<circle x="100" y="100" r="50" stroke-color="blue" stroke-width="5"></circle>
B.
<circle x="100" y="100" r="50" stroke="blue" stroke-width="5"></circle>
C.
<circle cx="100" cy="100" r="50" stroke="blue" stroke-width="5"></circle>
D.
<circle cx="100" cy="100" r="50" stroke-color="blue" stroke-width="5"></circle>
【单选题】Compared with the common image format, which of the following is not an advantage of svg? ( )
A.
Svg graphics can be searched, indexed and scripted, but not compressed.
B.
Svg graphicscan be scaled.
C.
Svg graphics can be printed with high quality at any resolution.
D.
Svg can be enlarged without degradation of graphicsquality.
刷刷题-刷题-导入试题 - 刷刷题
参考解析:
题目纠错 0
发布
刷刷题-刷题-导入试题 - 刷刷题刷刷题-刷题-导入试题 - 刷刷题刷刷题-刷题-导入试题 - 刷刷题
刷刷题-刷题-导入试题 - 刷刷题
刷刷题-刷题-导入试题 - 刷刷题
刷刷题-单词鸭