5s考试判断题及答案.docxVIP

  • 0
  • 0
  • 约4.81千字
  • 约 9页
  • 2026-08-21 发布于宁夏
  • 举报

5s考试判断题及答案

5s考试判断题及答案

5s考试判断题及答案

姓名:__________考号:__________

题号

总分

评分

一、单选题(共10题)

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

A.int

B.list

C.dictionary

D.function

2.在Python中,如何定义一个空字典?()

A.dict()

B.dict[]

C.{}

D.dict[]

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

A.len(str)

B.str.length

C.str.size

D.str.count()

4.在Python中,如何将字符串转换为整数?()

A.int(str)

B.str(int)

C.int()

D.str(int)

5.在Python中,以下哪个不是条件语句的关键字?()

A.if

B.else

C.switch

D.case

6.在Python中,如何定义一个无限循环?()

A.whileTrue:

B.foriinrange(1,2):

C.dowhileTrue;

D.foriinrange():

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

A.functi

文档评论(0)

1亿VIP精品文档

相关文档