执行递归一定会使程序崩溃,所以不能使用递归

python2-lesson06

Quiz
•
Computers
•
2nd - 12th Grade
•
Medium

hang zheng
Used 26+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
True
False
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
递归一定要有出口是什么意思?
指函数中必须存在一个结束函数的节点
指存在一个关闭程序的条件
指在函数中必须有一个break
指在函数中必须有一个continue
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
运行图中代码,程序会输出多少行123?
1行都不输出
无限行
输出到一定行数程序崩溃,停止输出
只输出1行123
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
运行上图中代码,程序会输出多少行123
只输出1行123
1行都不输出
无限行
输出到一定行数程序崩溃,停止输出
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
合理利用递归,可以达到和循环类似的效果
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
return关键字可以用于结束函数,可以当做结束递归的一种方法
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
运行上图中代码,程序会输出多少行123
1行都不输出,程序会报错
3行
2行
1行
Create a free account and access millions of resources
Similar Resources on Quizizz
Popular Resources on Quizizz
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade
Discover more resources for Computers
15 questions
Character Analysis

Quiz
•
4th Grade
17 questions
Chapter 12 - Doing the Right Thing

Quiz
•
9th - 12th Grade
10 questions
American Flag

Quiz
•
1st - 2nd Grade
20 questions
Reading Comprehension

Quiz
•
5th Grade
20 questions
Types of Credit

Quiz
•
9th - 12th Grade
30 questions
Linear Inequalities

Quiz
•
9th - 12th Grade
18 questions
Full S.T.E.A.M. Ahead Summer Academy Pre-Test 24-25

Quiz
•
5th Grade
14 questions
Misplaced and Dangling Modifiers

Quiz
•
6th - 8th Grade