- 1
- 0
- 约5.28千字
- 约 9页
- 2026-08-02 发布于中国
- 举报
银从考试题库及答案
姓名:__________考号:__________
一、单选题(共10题)
1.以下哪个选项是Python中的可变类型?()
A.int
B.str
C.list
D.tuple
2.在Python中,如何定义一个函数?()
A.deffunction_name():
B.function_name():
C.functionfunction_name():
D.function_namefunction():
3.以下哪个是Python中的条件语句?()
A.if
B.elif
C.else
D.alloftheabove
4.在Python中,如何遍历一个列表?()
A.foriinlist:
B.fori=range(len(list)):
C.foriinrange(list):
D.foriinlist[0]:
5.以下哪个是Python中的循环语句?()
A.for
B.while
C.do-while
D.noneoftheabove
6.在Python中,如何定义一个类?()
A.classClassName:
B.defClassName():
C.ClassName=class
D.
原创力文档

文档评论(0)