图形编程考级题库及答案.docxVIP

  • 1
  • 0
  • 约4.68千字
  • 约 9页
  • 2026-07-25 发布于宁夏
  • 举报

图形编程考级题库及答案

姓名:__________考号:__________

一、单选题(共10题)

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

A.list=[1,2,3]

B.array=(1,2,3)

C.vector={1,2,3}

D.set=[1,2,3]

2.以下哪个不是Python中的内置数据类型?()

A.int

B.float

C.string

D.list

3.在Python中,如何访问字典中的键值对?()

A.dict[key]

B.dict(key)

C.dict[key]

D.dict(key,)

4.以下哪个是Python中的条件语句?()

A.if-else

B.switch-case

C.case-if

D.if-then

5.在Python中,如何遍历一个列表?()

A.foriteminlist

B.foreachiteminlist

C.foreachiteminlist

D.loopiteminlist

6.以下哪个是Python中的循环控制语句?()

A.break

B.continue

C.bothAandB

D.noneoftheabove

7.在Py

文档评论(0)

1亿VIP精品文档

相关文档