#613. 【202509一级】选择题
【202509一级】选择题
选择题
单选题
- 在交互模式下输入
1+2+3+4,按回车键后,显示的结果为? {{ select(1) }}
- 3
- 10
- 4
- 1
-
下面程序运行后显示的结果是? {{ select(2) }}
str(123)+123
- 显示:123
- 显示:246
- 会报错
- 显示:123123
-
小会编写了一个程序,运行后显示的结果为? {{ select(3) }}
a=100 b=a a=b+10 print('a=',a) print('b=',b)
- a=100 b=110
- a=110 b=100
- a=110 b=110
- a=100 b=100
-
下面选项中,能够同样计算出正确结果的是? {{ select(4) }}
shui=108 meiren=108/6/6 print('每人分配矿泉水数=',meiren)
-
shui=108 meiren=108/6 -
shui=108 meiren=108/6**2 -
shui=108 meiren=108/6*6 -
shui=108 meiren=(108/6)*6
- 下列哪个函数可以将字符串转换为整数? {{ select(5) }}
- float()
- bool()
- int()
- str()
- 已知
x=5,y=10,则表达式x < y and x != 5的值为? {{ select(6) }}
- True
- False
- 5
- 10
- 下列哪个表达式的结果为 False? {{ select(7) }}
- 3 > 2
- 7 == 7
- 4 >= 5
- 4 != 5
- 关于代码注释,下列说法正确的是? {{ select(8) }}
- 注释只能写在程序最后
- 多行注释会影响程序运行速度
- 不可以多行注释
- 可以使用
""" """进行多行注释
- 关于
turtle.color(color1,color2)说法正确的是? {{ select(9) }}
- color1 代表填充颜色
- color2 代表画笔颜色
- 指令中的参数可以只写一个
- 两个颜色不能相同
- 关于
turtle.circle()的用法,说法错误的是? {{ select(10) }}
- turtle.circle(100,180) 画半圆
- turtle.circle(100) 画半径为100的圆
- turtle.circle(100,360) 画完整圆
- turtle.circle(100,step=3) 是画半径为3的弧
- 在 IDLE 中可以直接打开的 Python 文件是? {{ select(11) }}
- speech语音.exe
- speech语音.Py3
- speech语音.python
- speech语音.py
- 正确导入 turtle 库的语句是? {{ select(12) }}
- turtle import
- import turtle
- use turtle
- get turtle
- 从 (0,0) 移动到 (120,120) 的正确代码是? {{ select(13) }}
- turtle.goto(0,0)
- turtle.backward(120)
- turtle.goto(120,120)
- turtle.backward(120)turtle.backward(120)
print(13-2*3)的输出结果为? {{ select(14) }}
- 33
- 报错
- 7
- 37
turtle.forward(100)默认绘制方向是? {{ select(15) }}
- 向左
- 向右
- 向上
- 向下
- 在导入turtle库后,只执行了turtle.forward(100)这一命令,请问以下哪一项不能让画笔回到初始位置? {{ select(16) }}
- turtle.backward(100)
- turtle.goto(0,0)
- turtle.right(100)
- turtle.home()
-
运行代码后,变量 a 的值为? {{ select(17) }}
a = 3 b = 5 a += b
- 3
- 5
- 8
- 15
- 变量 a 为整数类型的是? {{ select(18) }}
- a=float(input())
- a=str(input())
- a=input()
- a=int(input())
- “三选一” 正确的逻辑表达式是? {{ select(19) }}
- 汉堡 and 炸鸡 and 卤肉卷
- 汉堡 or 炸鸡 or 卤肉卷
- 汉堡 and 炸鸡 or 卤肉卷
- 汉堡 or 炸鸡 and 卤肉卷
- 与
a=a+5等价的是? {{ select(20) }}
- a=+5
- a+=5
- a+5=a
- a+5=5
-
程序输出结果为? {{ select(21) }}
a = int(7.7) a+=2 print(a)
- 10
- 9
- 7.7
- 9.7
- 在 Turtle 库中,需将窗口大小设为宽 600 像素、高 400 像素,窗口初始位置距屏幕左边缘 150 像素、距屏幕上边缘 250 像素。以下哪个选项能实现此需求?( ) {{ select(22) }}
- turtle.setup(150,250,600,400)
- turtle.setup(600,400,150,250)
- turtle.setup(400,600,250,150)
- turtle.setup(250,150,400,600)
- 统计班级兴趣,喜欢足球的有 12 人,喜欢篮球的有 10 人,两样都喜欢的有 3 人。问:班级至少有多少人? {{ select(23) }}
- 25
- 16
- 22
- 19
print(16 == 16.0)输出结果是? {{ select(24) }}
- False
- 3
- True
- 3.0
- 运算优先级最高的是? {{ select(25) }}
=>*not
相关
在下列比赛中: