2026年青少年python等级考试试题.docxVIP

  • 7
  • 0
  • 约4.59千字
  • 约 17页
  • 2026-04-18 发布于陕西
  • 举报

2026年青少年python等级考试试题

考试时长:120分钟满分:100分

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

1.在Python中,以下哪个语句用于正确注释代码?

A.//Thisisacomment

B.Thisisacomment

C./Thisisacomment/

D.Thisisacomment

2.下列哪个数据类型是不可变的?

A.列表(List)

B.元组(Tuple)

C.字典(Dictionary)

D.集合(Set)

3.在Python中,如何正确导入名为“math”的标准库?

A.importmathmodule

B.includemath

C.importmath

D.requiremath

4.以下哪个函数用于在字符串中查找子字符串的位置?

A.find()

B.search()

C.locate()

D.index()

5.下列哪个是Python中正确的循环结构?

A.fori=1to10

B.whilei=10

C.loopi=1t

文档评论(0)

1亿VIP精品文档

相关文档