2026年三年级寒假试卷及答案.docVIP

  • 7
  • 0
  • 约2.89千字
  • 约 12页
  • 2026-04-18 发布于辽宁
  • 举报

2026年三年级寒假试卷及答案

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

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

A.int

B.float

C.string

D.boolean

答案:D

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

A.(1,2,3)

B.[1,2,3]

C.{1,2,3}

D.{1:a,2:b,3:c}

答案:B

3.下列哪个是正确的Python语法?

A.ifx=5:

B.ifx==5:

C.ifx=5then:

D.ifxis5:

答案:B

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

A.functionname():

B.defname():

C.funcname():

D.voidname():

答案:B

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

A.//

B.

C./

D.//

答案:B

6.在Python中,如何获取列表的长度?

A.len(list)

B.list.size()

C.list.length

D.count(list)

答案:A

7.下列哪个是正确的字符串连接方式?

A.hello+world

B.hello-world

C.helloworld

D.hello/world

答案:A

8.在

文档评论(0)

1亿VIP精品文档

相关文档