没有合适的资源?快使用搜索试试~ 我知道了~
青少年编程等级考试Python编程一级试卷3优质word练习.pdf
1.该资源内容由用户上传,如若侵权请联系客服进行举报
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
2.虚拟产品一经售出概不退款(资源遇到问题,请及时私信上传者)
版权申诉
0 下载量 78 浏览量
2021-09-14
19:40:13
上传
评论
收藏 1.07MB PDF 举报
温馨提示
![preview](https://dl-preview.csdnimg.cn/22831783/0001-3f5e2d33d00e5c1325f9b5cdd089d694_thumbnail.jpeg)
![preview-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/scale.ab9e0183.png)
试读
22页
。。。
资源推荐
资源详情
资源评论
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![docx](https://img-home.csdnimg.cn/images/20210720083331.png)
![](https://csdnimg.cn/release/download_crawler_static/22831783/bg1.jpg)
青少年编程等级考试 Python 编程一级试卷 3 优质 word 练习
一、选择题
1.下列不可以用来搭建本地服务器的软件是( )。
①
Python
②
Excel
③
IIS
④
Apache
A
.①②
A
.
a,b = b,a
C
.
a = b
;
b = a
3.以下是一段
python
程序:
B
.③④
C
.①②③④
B
.
a = c
;
a = b
;
b = c
D
.
c = a
;
b = a
;
b = c
D
.①②④
2.在
Python
中要交换变量
a
和
b
中的值,应使用的语句组是( )
它的可以用哪个流程图表达( )。
A
.
B
.
C
.
4.python3
解释器执行
not 1 and 1
的结果为( )。
A
.
True
A
.
5
B
.
False
B
.
1
C
.
0
C
.
6
D
.
1
D
.
11
5.在
Python
中
print(8+7%2**2)
的执行结果是( )
6.以下( )是 python 文件
![](https://csdnimg.cn/release/download_crawler_static/22831783/bg2.jpg)
A
.*.mp3
B
.*.xls
C
.*.ppt
D
.*py
7.小林编写一段文件读写操作代码,文件如图,代码段如下:
file=open('ceshi.txt','w')
file.write("python is a programming language.")
file.close( )
file=open('ceshi.txt','r')
print(file.read( ))
该代码段运行后,输出的结果为( )
A
.
IA Distributed System Based on Python.
B
.
python is a programming language.
C
.
IA Distributed System Based on Python. python is a programming language.
D
.程序编译错误,不会输出结果
8.如下
Python
程序段
for i in range
(
1
,
4
):
for j in range
(
0
,
3
):
print
(
"Python"
)
语句
print
(
"Python"
)的执行次数是( )
A
.
3
A
.“
python
”
A
.
int32
A
.面向对象
x=9
Print
(“
x=
”,
x+1
)
A
.
9
A
.
34
A
.
True
B
.
88abc
C
.
abc&88
D
.
_abc88
B
.
10
B
.
67
C
.
x=9
C
.
100
D
.
x= 10
D
.
1
13.在
Python
中,“
print(100-33*5%3)
”语句输出的是( )
14.下列属于正确的
Python
变量名的是( )
B
.
4
B
.“
Python
”
B
.
40xl
B
.运行效率高
C
.
6
C
.
True
C
.
self
C
.可读性好
D
.
9
D
.
False
D
.
_name_
D
.开源
9.已知字符串
s1="python"
,
s2="Python"
,则表达式中
s1>s2
的值为( )
10.下列选项中,不属于
Python
合法变量名的是( )
11.下列选项中,不属于
Python
特点的是( )。
12.在
Python
中,下面程序段的输出结果是( )
![](https://csdnimg.cn/release/download_crawler_static/22831783/bg3.jpg)
15.下列定义变量的
python
程序语句变量赋值错误的是( )
A
.
x=y=1 B
.
x,y=1,2 C
.
x==1
16.下面的
Python
程序段运行后的输出结果是( )
x=3
if x%2==0:
print(x, "
是偶数。
")
else:
print(x, "
是奇数。
")
A
.
3
是奇数
B
.
x, "
是偶数
" C
.
x, "
是奇数
"
17.在下列程序设计语言中,属于人工智能语言的是( )。
A
.
Python
B
.
VB
C
.
Pascal
D
.
C
18.计算机能够直接识别和执行的语言是
( )
A
.机器语言
B
.汇编语言
C
.
Python
语言
D
.
C
语言
19.Python
中
“ab ”+“cd”*2
的结果是( )。
A
.
abcd2 B
.
abcdabcd C
.
abcdcd
20.在
Python IDLE
编辑器中书写正确的表达式( )
A
.
b**2-4ac B
.
1
/2
gt
2
C
.
pi*r^2
21.有
python
程序如下
a=int(input())
b=int(input())
c=input()
if c=='+':
print(a+b)
elif c=='-':
print(a-b)
elif c=='*':
print(a*b)
elif c=='/':
print(a/b)
else:
print(
“输入错误,请重试”)
当程序运行后,小新依次输入
9 2 *
程序输出结果应为( )
A
.
18 B
.
11 C
.
7
D
.
x=1,2
D
.
3
是偶数
D
.
ababcd
D
.
2*pi*r
D
.
4
![](https://csdnimg.cn/release/download_crawler_static/22831783/bg4.jpg)
22.小平打算用
python
编写一个管理班上同学通讯录的程序,如果用一个变量
A
来对应处
理同学们的电话号码,这个变量
A
定义成什么数据类型比较适合?()。
A
.布尔型
B
.浮点型
C
.整型
D
.字符串
23.以下文本框内是一段用
Python
程序设计语言编写的源代码,功能是输出
200
以内能被
17
整除的最大正整数。这段源代码属于( )。
A
.软件
B
.程序
C
.指令
D
.高级语言
24.Python
表达式
a=b
中“
=
”表示 ( )
A
.交换“
=
”左右两边变量的值
B
.把“
=
”右边变量的值赋值给左边变量
C
.把“
=
”左边变量的值赋值给右边变量
D
.比较“
=
”左右两边变量的值是否相等
25.在
Python
程序设计语言中,用于输入和输出的函数分别是
( )
A
.
read( )
和
write( )
C
.
input( )
和
print( )
B
.
input( )
和
output( )
D
.
cin( )
和
cout( )
)。
C
.
VB D
.
C
26.解释性语言是指源代码不要求预先进行编译,在运行时才进行解释再运行,以下哪一
种程序设计语言属于解释性语言(
A
.
Python
a=15
b=46
if__________:
print(‘True’)
else:
print(‘Flase’)
A
.
a=b B
.
a>b C
.
a<b D
.
a==b
28.以下是猜数游戏的
Python
程序,请你补全代码:
B
.
C++
27.运行下列
Python
程序,输出结果为
True
,则空白处应为( )
![](https://csdnimg.cn/release/download_crawler_static/22831783/bg5.jpg)
请选择适当的代码填入程序①处。( )
A
.
for
A
.12
a=6
If a>=0
:
b=a+2
Else
:
b=a
-
2
print
(
b
)
A
.
6 B
.
8 C
.
10 D
.
12
B
.
print
B
.1
C
.
elif
C
.64
D
.
input
D
.7
29.python 中表达式 4**3=( )。
30.在
Python
中运行后,
b
的值是 ( )
二、程序填空
31.一家商场在降价促销,如果购买金额不高于
200
元,会给
10%
的折扣,如果购买金额
高于
200
元,会给
20%
的折扣。编写一个
Python
程序,输入消费额(整数),显示折扣后
的应付金额。
32.(项目情境)一元二次方程
ax
2
+bx+c=0
(
a
≠
0
),当
b
2
-
4ac
≥
0
,方程有两个不同的
实数根,当
b
2
-
4ac
<
0
时,方程无实数根。
(问题求解)下面的
python
程序实现的功能是判断方程是否有实数根。请阅读如下
python
程序,在空白处填写适当的表达式或语句,使程序完整。
import math
a=int(input("
请输入
a
的值:
"))
b=int(input("
请输入
b
的值:
"))
c=int(input("
请输入
c
的值:
"))
d=_____ #
将表达式
b
2
-
4ac
的值赋给变量
d
if ____
print("x1=",(-b+math.sqrt(d))/(2*a)) #
输出方程的其中一个实数根
print("x2=",
(
_________
)
#
输出方程的另一个实数根
else:
剩余21页未读,继续阅读
资源评论
![avatar-default](https://csdnimg.cn/release/downloadcmsfe/public/img/lazyLogo2.1882d7f4.png)
![avatar](https://profile-avatar.csdnimg.cn/6d4a39ec593a4e2fbcf3d53e4855e565_cqn2bd2b.jpg!1)
苦茶子12138
- 粉丝: 1w+
- 资源: 6万+
上传资源 快速赚钱
我的内容管理 展开
我的资源 快来上传第一个资源
我的收益
登录查看自己的收益我的积分 登录查看自己的积分
我的C币 登录后查看C币余额
我的收藏
我的下载
下载帮助
![voice](https://csdnimg.cn/release/downloadcmsfe/public/img/voice.245cc511.png)
![center-task](https://csdnimg.cn/release/downloadcmsfe/public/img/center-task.c2eda91a.png)
最新资源
- 实践项目-图书馆管理系统(C#.NET)
- 10Eclipse项目源码.jpg
- 大屏可视化数据课程项目
- Maven 快速入门指南:安装和配置方法详解
- STM32物信息通过MQTT协议上传云平台
- STM32物信息通过MQTT协议上传云平台
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本122.0.6260.0)
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本122.0.6259.0)
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本122.0.6258.0)
- 基于Selenium的Java爬虫实战(内含谷歌浏览器Chrom和Chromedriver版本122.0.6257.0)
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback](https://img-home.csdnimg.cn/images/20220527035711.png)
![feedback-tip](https://img-home.csdnimg.cn/images/20220527035111.png)
安全验证
文档复制为VIP权益,开通VIP直接复制
![dialog-icon](https://csdnimg.cn/release/downloadcmsfe/public/img/green-success.6a4acb44.png)