Edit Game
Functions in Python
 Delete

Use commas to add multiple tags

 Private  Unlisted  Public



 Save

Delimiter between question and answer:

Tips:

  • No column headers.
  • Each line maps to a question.
  • If the delimiter is used in a question, the question should be surrounded by double quotes: "My, question","My, answer"
  • The first answer in the multiple choice question must be the correct answer.






 Save   13  Close
In which order the following lines of code will be processed by Python compiler?
4, 1, 2
What is the output of the following code segment?
No output will be displayed!
What is the output of the following code segment?
20
What is the output of the following code segment?
10
True of False: data = 20 is a global variable.
False
True or False: data = 10 is a global variable.
True
How many parameters does the function have?
0
What is the name of the function?
my_function
The variables used in the function header are called ___________________.
parameters
The values being passed through a function call statement are called _________________.
arguments
True or False: print() is a user-defined function.
False
True or False: A function header in Python contains a list of arguments.
False
_______________ keyword is used for creating a function in Python.
def