儿童编程试题及答案大全王牌题库.docxVIP

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

儿童编程试题及答案大全

姓名:__________考号:__________

题号

总分

评分

一、单选题(共10题)

1.1+1等于多少?()

A.2

B.3

C.4

D.5

2.在Python中,如何打印“Hello,World!”?()

A.print(Hello,World!)

B.print(Hello,World!)

C.sayHello,World!

D.println(Hello,World!)

3.以下哪个是Python中的变量名?()

A.2things

B.my-var

C.class

D.True

4.如何注释掉一行代码?()

A.//注释内容

B./*注释内容*/

C.#注释内容

D.注释内容

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

A.list=[1,2,3]

B.var=(1,2,3)

C.array={1,2,3}

D.var=1,2,3

6.以下哪个是Python中的循环结构?()

A.if

B.else

C.for

D.while

7.如何获取列表的长度?()

A.len(list)

B.size(list)

C.length(list)

D.

文档评论(0)

1亿VIP精品文档

相关文档