
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
10 questions
If-Statements
Quiz
•
9th - 12th Grade
10 questions
Microsoft Word 2016 - Unit 1
Quiz
•
10th Grade - University
10 questions
Python: matlpotlib Online Quiz
Quiz
•
9th - 10th Grade
10 questions
Java-Quiz1
Quiz
•
10th Grade
12 questions
7 клас Підсумковий тест з інформатики
Quiz
•
1st - 12th Grade
10 questions
Pensamiento Computacional
Quiz
•
8th - 11th Grade
9 questions
Introducción al DFD
Quiz
•
10th Grade
10 questions
Java Quiz 1: Introduction
Quiz
•
6th - 12th 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