
科技节编程挑战赛初赛选拔题
Authored by 小星 翟
Computers
7th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
11 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
以下哪些是Python编程中常用的控制结构?
A. If语句
B. For循环
C. While循环
D. Try-Except语句
2.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
下列哪些属于Python中的数据类型?
A. int
B. bool
C. string
D. array
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在Python中,用于输出到控制台的函数是?
A. print()
B. input()
C. len()
D. range()
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在循环结构中,以下哪个语句可以用来中断当前循环并提前结束循环的执行?
A. break语句
B. continue语句
C. return语句
D. exit语句
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
在图形化编程中,Scratch是通过什么方式来实现代码逻辑的?
A. 拖放式编程
B. 文本式编程
C. 命令行编程
D. 编译式编程
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
请编写一个递归函数,计算一个正整数的阶乘。 def factorial(n): if n == 0: return _____ else: return n * factorial(n - 1)
A 1
B 2
C 3
D 4
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
单选题:在Python中,如何创建一个空列表?
A. empty_list = ()
B. empty_list = [ ]
C. empty_list = {}
D. empty_list = list()
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Microsoft
or continue with
%20(1).png)
Apple
Others
Already have an account?