2021年6月电子学会青少年软件编程(Python一级)等级考试试卷
操作/编程
一级
2021
2022-10-31 11:07:07
34次
一、单选题
分析下列程序,说法错误的是?( )
import turtle
turtle.color('blue')
turtle.fillcolor('yellow')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()
turtle.forward(100)
turtle.color('red', 'aqua')
turtle.begin_fill()
turtle.circle(50)
turtle.end_fill()| A. turtle.color('blue')表示的含义为:设置轮廓和填充颜色均为"blue" |
B. turtle.fllcolor('yellow')表示的含义为:设置填充颜色为"yellow" |
| C. 程序运行结果为:绘制两个圆,左边圆填充颜色为"yellow",右边圆的颜色为"aqua" |
D. 最终绘制两个圆的轮廓颜色均为"blue" |
【知识点】 电子学会Python一级
以下哪段程序能在画出三角形并隐藏turtle?( )
A.import turtle turtle.circle(150,steps=3) turtle.hideturtle() turtle.done() |
B.import turtle turtle.circle(150,3) turtle.hideturtle() turtle.done() |
C.import turtle turtle.circle(3) turtle.hideturtle() turtle.done() |
D.import turtle turtle.circle(150,3,3) turtle.hideturtle() |
【知识点】 电子学会Python一级
下面哪个代码可以绘制一个直径为200的填充为红色,轮廓为蓝边的圆形?( )
A.import turtle
turtle.pencolor('blue')
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(200)
turtle.end_fill() |
B.import turtle
turtle.pencolor('blue')
turtle.fillcolor('red')
turtle.begin_fill()
turtle.circle(100, 360)
turtle.end_fill() |
C.import turtle
turtle.color('blue')
turtle.dot(200) |
D. import turtle turtle.pencolor('blue') turtle.fillcolor('red') turtle.dot(100) |
【知识点】 电子学会Python一级
