定义函数的关键字是?

python2-lesson05

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

hang zheng
Used 59+ times
FREE Resource
15 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
1 min • 1 pt
2.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
现在想要定义一个名为 test的函数,下列代码正确的是?
def (test):
def test ():
def test():
def ()test:
3.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
一个函数被定义完成之后,就一定会被执行
True
False
4.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
定义带参函数时,函数中定义了2个参数,那么执行函数时必须传入???个具体的数值
1
2
3
随便几个,根据实际情况而定
5.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
在函数中 return后面必须加一个数值
True
False
6.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
当函数根据参数名进行赋值的时候,不再遵循按顺序赋值的原则
True
False
7.
MULTIPLE CHOICE QUESTION
1 min • 1 pt
在函数中,return关键字有什么作用?
返回一个值 并结束这个函数
返回一个值 并继续运行这个函数
结束整个程序
让程序重新开始
Create a free account and access millions of resources
Similar Resources on Quizizz
10 questions
python2-lesson01

Quiz
•
2nd - 11th Grade
17 questions
ITP2(17)

Quiz
•
11th Grade
10 questions
顺序结构复习

Quiz
•
10th Grade
11 questions
2024年第一学期编程复习

Quiz
•
9th - 12th Grade
11 questions
2024年编程语言总结

Quiz
•
9th - 12th Grade
10 questions
python2-lesson06

Quiz
•
2nd - 12th Grade
10 questions
python2-lesson10

Quiz
•
2nd - 12th Grade
10 questions
统考电脑上册(29/9)

Quiz
•
12th Grade
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