少儿编程基本考试题及答案.docxVIP

  • 2
  • 0
  • 约4.91千字
  • 约 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.Hello,World!

D.Noneofthese

3.以下哪个是正确的变量命名?()

A.2things

B.thing2

C.thing2

D.thing-2

4.在Python中,如何获取用户输入?()

A.input(Pleaseenteryourname:)

B.get_input(Pleaseenteryourname:)

C.UserInput(Pleaseenteryourname:)

D.Noneofthese

5.在Python中,如何判断一个变量是否为字符串类型?()

A.isinstance(variable,str)

B.type(variable)==str

C.variable.is_string()

D.Noneofthese

6.以下哪个是Python中的

文档评论(0)

1亿VIP精品文档

相关文档