
Quiz về Hàm trong Python
Authored by Hoan Kim
Computers
10th Grade
Used 2+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
10 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What keyword is used to declare a function in Python?
define
def
function
fun
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What value does a function without a return statement return?
0
False
None
Empty string
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What are the parameters passed into a function called?
Variables
Arguments
Keywords
Returns
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the correct syntax to define a function with 2 parameters?
def func[x, y]
function func(x, y):
define func(x; y):
def func(x, y):
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the return keyword?
Output value to the screen
End the loop
Input value
End the function and return a value
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following is true about variable scope in a function?
Variables in a function are called local variables
Variables in a function do not affect outside variables
Variables in a function are global variables
Variables in a function cannot be used
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Can a function be defined inside another function?
No
Yes
Only in a class
Only when there are no parameters
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 Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
12 questions
Retos y destrezas
Quiz
•
10th Grade
15 questions
C Programming Concepts
Quiz
•
10th Grade
10 questions
Q3 M6 POST TEST
Quiz
•
10th Grade
14 questions
LA5.C5: Branching and Subroutines
Quiz
•
9th Grade - University
15 questions
SENATIC Parcial Guía 3_PseInt
Quiz
•
10th Grade - University
15 questions
Quiz Aplikasi Pengolah Angka
Quiz
•
10th Grade - University
15 questions
Understanding Baking Principles
Quiz
•
8th Grade - University
10 questions
2. Components of the CPU
Quiz
•
9th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade