计算机考试试题(精选)mc.docxVIP

  • 1
  • 0
  • 约4.53千字
  • 约 8页
  • 2026-09-01 发布于中国
  • 举报

计算机考试试题(精选)mc

计算机考试试题(精选)mc

计算机考试试题(精选)mc

姓名:__________考号:__________

一、单选题(共10题)

1.以下哪个不是Python中的基本数据类型?()

A.整数

B.浮点数

C.字符串

D.字典

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

A.list=[1,2,3]

B.array=(1,2,3)

C.set={1,2,3}

D.tuple=(1,2,3)

3.在Python中,如何调用函数?()

A.function_name()

B.function_name:()

C.function_name;()

D.function_name,()

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

A.for

B.while

C.do-while

D.foreach

5.在Python中,如何进行字符串的切片操作?()

A.string[1:3]

B.string[1,3]

C.string(1,3)

D.string[1-3]

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

A.classClassName():

B.defineClassName():

C.ClassNa

您可能关注的文档

文档评论(0)

1亿VIP精品文档

相关文档