#Py1012. python一级模拟卷三-3

python一级模拟卷三-3

单选题

1、下面的哪一个命令不是移动画笔箭头位置的命令?() {{ select(1) }}

  • turtle.forward()
  • turtle.goto()
  • turtle.color()
  • tuytle.right()

2、a=2, b=3,那么c=a**b运算的结果是?() {{ select(2) }}

  • 6
  • 8
  • 9
  • 23

3、使用Python画笔绘制如下图所示的图案,第四行的代码应如何补充?() {{ select(3) }}

  • p.right(90)
  • p.left(90)
  • p.right(-90)
  • p.left(-180)

4、下面的运算符中,按照运算优先级哪一个是最高级?() {{ select(4) }}

  • **
  • *
  • +
  • /

5、如图创建一个新的Python文件应该选择哪个选项?() {{ select(5) }}

  • Open
  • Recent Files
  • New File
  • Print Window

判断题

6、以下三种表示字符串的方式都是正确的。
“Hello”
'不错'
“我们一起走吧’ {{ select(6) }}

  • 正确
  • 错误

7、turtle库是一个直观有趣的图形绘制函数库。 {{ select(7) }}

  • 正确
  • 错误

8、在Python中变量需要提前定义,可以不用赋值。 {{ select(8) }}

  • 正确
  • 错误

9、使用turtle时,画布默认坐标左上角为画布中心。 {{ select(9) }}

  • 正确
  • 错误

10、print('hello,world')和 print('hello','world')输出内容一致。 {{ select(10) }}

  • 正确
  • 错误