
Quiz về Hàm trong Python

Quiz
•
Computers
•
10th Grade
•
Easy
Hoan Kim
Used 2+ times
FREE Resource
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
Create a free account and access millions of resources
Similar Resources on Wayground
12 questions
Computer Science

Quiz
•
3rd - 12th Grade
10 questions
on cuoi ki 2 tin 10 cde 5 python

Quiz
•
10th Grade
10 questions
Code.org Unit 5 Vocab Quiz 1

Quiz
•
9th - 12th Grade
10 questions
Evaluasi PHP 4

Quiz
•
10th Grade
12 questions
Python_4

Quiz
•
9th - 12th Grade
12 questions
Functions With Return Values U1M2 Python

Quiz
•
9th - 12th Grade
10 questions
Gr10 DigiPro Sprint 1.1

Quiz
•
10th Grade
11 questions
Урок 6 м2

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
20 questions
Analog vs Digital

Quiz
•
9th - 12th Grade
10 questions
Exploring Cybersecurity Techniques and Threats

Interactive video
•
6th - 10th Grade
10 questions
Understanding the Internet and Data Transmission

Interactive video
•
7th - 12th Grade