理论卷2021年6月青少年软件编程(Python) · 一级
YLT Python 1级 2021.06
满分 100 · 及格 60 · 时长 60 分钟 · 共 37 题 (单选25 / 判断10 / 编程题2)
试卷阅览 · 免费预览前 10 题 · 交卷后可查看答案与解析
1
单选题号 #21106
分值 2下列程序运行的结果是?( )
s = 'hello'
print(s+'world')
A
sworld
B
helloworld
C
hello
D
world
2
单选题号 #21107
分值 2下列选项中不符合Python语言变量命名规则的是?( )
AComputer
BP
C3_1
D_WO1
3
单选题号 #21108
分值 2在Python中,运行9//2,输出的结果是?( )
A3
B4.5
C4
D4.0
4
单选题号 #21109
分值 2下面哪一行代码的输出结果不是World2021?( )
Aprint("World"+"2021")
Bprint("World"+"20"+"21")
Cprint("World"+2021)
Dprint("World2021")
5
单选题号 #21110
分值 2在Python中,输入3*4**2,运算结果是?( )
A144
B24
C48
D6
6
单选题号 #21111
分值 2关于比较运算符说法正确的是?( )①!=表示为不等于,如果两个操作数不相等,则为False②<=表示为小于等于,如果左边的数小于或等于右边的数,则为True③若a=2,b=5则a!=b为True
A①②
B②③
C①③
D①②③
7
单选题号 #21112
分值 2Python中的乘法是用哪个符号表示的?( )
A*
BX
Cx
D#
8
单选题号 #21113
分值 2以下哪个选项可以作为Python文件的后缀名?( )
A.py
B.png
C.doc
D.pdf
9
单选题号 #21114
分值 2要给三个整型变量a、b、c赋值为5,下面Python程序正确的是?( )
Aabc=5
Ba=5,b=5,c=5
Ca=b=c=5
Da=5 b=5 c=5
10
单选题号 #21115
分值 2以下哪段程序能在画出三角形并隐藏turtle?( )
Aimport turtle turtle.circle(150,steps=3) turtle.hideturtle() turtle.done()
Bimport turtle turtle.circle(150,3) turtle.hideturtle() turtle.done()
Cimport turtle turtle.circle(3) turtle.hideturtle() turtle.done()
Dimport turtle turtle.circle(150,3,3) turtle.hideturtle()
🔒
已解锁前 10 题
第 11~37 题(共 27 题)可在考试中作答
本卷为普通试卷:注册用户每题扣 1 积分(每日登录送 30 体验积分),交卷后查看答案与解析
