Toggle Navigation
Games
Blog
Class PIN
Join for Free
Sign in
Toggle Navigation
Games
PIN
Join for Free
Blog
Pricing
Contact us
Help center
Sign in
Study
Functions in Python
0
%
0
0
0
Back
Restart
What is the output of the following code segment?
20
Oops!
Okay!
True of False: data = 20 is a global variable.
False
Oops!
Okay!
What is the name of the function?
my_function
Oops!
Okay!
True or False: print() is a user-defined function.
False
Oops!
Okay!
What is the output of the following code segment?
No output will be displayed!
Oops!
Okay!
In which order the following lines of code will be processed by Python compiler?
4, 1, 2
Oops!
Okay!
How many parameters does the function have?
0
Oops!
Okay!
The variables used in the function header are called ___________________.
parameters
Oops!
Okay!
True or False: data = 10 is a global variable.
True
Oops!
Okay!
What is the output of the following code segment?
10
Oops!
Okay!
True or False: A function header in Python contains a list of arguments.
False
Oops!
Okay!
The values being passed through a function call statement are called _________________.
arguments
Oops!
Okay!
_______________ keyword is used for creating a function in Python.
def
Oops!
Okay!
Your experience on this site will be improved by allowing cookies.
Allow cookies