- 0
- 0
- 约4.37千字
- 约 8页
- 2026-02-25 发布于安徽
- 举报
诺瓦笔试题及答案
姓名:__________考号:__________
一、单选题(共10题)
1.在Python中,以下哪个不是内置的数据类型?()
A.int
B.list
C.dict
D.class
2.在Python中,如何获取字符串的长度?()
A.len(string)
B.string.size()
C.string.length()
D.string.size
3.在Python中,以下哪个是错误的赋值操作?()
A.a=b
B.a,b=b,a
C.a=a+1
D.a=a-1
4.在Python中,以下哪个函数用于打开文件?()
A.open()
B.fopen()
C.openfile()
D.fileopen()
5.在Python中,以下哪个是无限循环的正确写法?()
A.whileTrue:pass
B.foriinrange():
C.whilei:pass
D.foriinrange(-1,0)
6.在Python中,如何定义一个函数?()
A.deffunction():
B.function():
C.function=()
D.deffunction(){}
7.在Python
原创力文档

文档评论(0)