以下哪些是Python编程中常用的控制结构?

科技节编程挑战赛初赛选拔题

Quiz
•
Computers
•
7th Grade
•
Hard

小星 翟
Used 2+ times
FREE Resource
11 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
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()
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
untitled

Quiz
•
4th Grade - University
10 questions
台中市三年級資訊2-02數位學習高手-01主動學習樂

Quiz
•
3rd - 12th Grade
8 questions
運算思維挑戰賽

Quiz
•
7th - 10th Grade
10 questions
一个简单的自我介绍

Quiz
•
6th - 8th Grade
15 questions
J05.3 常见的应用软体

Quiz
•
7th Grade
10 questions
python 基础测题

Quiz
•
6th - 8th Grade
12 questions
J06 文书处理

Quiz
•
7th Grade
15 questions
python2-lesson03

Quiz
•
2nd - 12th Grade
Popular Resources on Wayground
25 questions
Equations of Circles

Quiz
•
10th - 11th Grade
30 questions
Week 5 Memory Builder 1 (Multiplication and Division Facts)

Quiz
•
9th Grade
33 questions
Unit 3 Summative - Summer School: Immune System

Quiz
•
10th Grade
10 questions
Writing and Identifying Ratios Practice

Quiz
•
5th - 6th Grade
36 questions
Prime and Composite Numbers

Quiz
•
5th Grade
14 questions
Exterior and Interior angles of Polygons

Quiz
•
8th Grade
37 questions
Camp Re-cap Week 1 (no regression)

Quiz
•
9th - 12th Grade
46 questions
Biology Semester 1 Review

Quiz
•
10th Grade