2026年六方云笔试题目及答案.docxVIP

  • 2
  • 0
  • 约5.78千字
  • 约 13页
  • 2026-06-05 发布于中国
  • 举报

2026年六方云笔试题目及答案

姓名:_____?准考证号:_____?得分:__________

一、选择题(每题2分,总共10题)

1.在Python中,下列哪个语句是正确的?

A.int(“3.14”)

B.float(“42”)

C.str(3)

D.bool(“”)

2.下列哪个不是Python的基本数据类型?

A.list

B.tuple

C.dictionary

D.array

3.在Python中,如何表示一个列表?

A.(1,2,3)

B.[1,2,3]

C.{1,2,3}

D.{“a”:1,“b”:2}

4.下列哪个是Python中的注释符号?

A.//

B.#

C./*

D.--

5.在Python中,如何获取字符串“hello”的长度?

A.len(hello)

B.len(“hello”)

C.length(“hello”)

D.count(“hello”)

6.下列哪个是Python中的条件语句?

A.if

B.while

C.for

D.switch

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

A.functionname():

B.defname():

C.funcname():

D.definename()

8.下列哪个是Python中的循环

文档评论(0)

1亿VIP精品文档

相关文档