高速学堂考试题库及答案.docxVIP

  • 1
  • 0
  • 约5.31千字
  • 约 9页
  • 2026-08-14 发布于中国
  • 举报

高速学堂考试题库及答案

高速学堂考试题库及答案

高速学堂考试题库及答案

姓名:__________考号:__________

题号

总分

评分

一、单选题(共10题)

1.在Python中,如何定义一个列表?()

A.list=[1,2,3]

B.array=(1,2,3)

C.array=[1,2,3]

D.list=(1,2,3)

2.以下哪个是Python中的布尔值?()

A.None

B.True

C.False

D.0

3.在Python中,如何获取字符串的长度?()

A.len(string)

B.string.length

C.string.size

D.string.count

4.在Python中,如何进行类型转换?()

A.type(string)=int

B.string.convert(int)

C.int(string)

D.string.to_int

5.以下哪个是Python中的循环结构?()

A.if-else

B.for

C.switch

D.while

6.在Python中,如何定义一个函数?()

A.deffunction():

B.functiondef

C.definefu

文档评论(0)

1亿VIP精品文档

相关文档