- 0
- 0
- 约3.2千字
- 约 12页
- 2026-04-24 发布于山东
- 举报
2026年最新编程最简单的题目及答案
一、单项选择题,(总共10题,每题2分)。
1.在Python中,用于输出信息的函数是?
A.input()
B.print()
C.output()
D.show()
答案:B
2.以下哪个不是Python的基本数据类型?
A.int
B.float
C.string
D.boolean
答案:C
3.在Python中,如何定义一个变量并赋值为10?
A.variable10
B.var=10
C.intvariable=10
D.variable=10
答案:D
4.以下哪个是正确的Python循环语句?
A.fori=1to10
B.whilei=10
C.foriinrange(1,11)
D.dowhilei=10
答案:C
5.在Python中,如何正确地注释一行代码?
A.//Thisisacomment
B.Thisisacomment
C./Thisisacomment/
D.--Thisisacomment
答案:B
6.以下哪个是正确的Python条件语句?
A.if(x5)
B.ifx5
C.ifx5
D.if{x5}
答案:B
7.在Python中,如何
原创力文档

文档评论(0)