0 of 5 Questions completed
Questions:
You have already completed the quiz before. Hence you can not start it again.
Quiz is loading…
You must sign in or sign up to start the quiz.
You must first complete the following:
0 of 5 Questions answered correctly
Your time:
Time has elapsed
You have reached 0 of 0 point(s), (0)
Earned Point(s): 0 of 0, (0)
0 Essay(s) Pending (Possible Point(s): 0)
What is the output of the following Python code?
def greet(name="John"):
return "Hello, " + name
print(greet())
What is the primary purpose of the return
keyword in Python functions?
Which Python keyword is used to import a module?
If you have a function named calculate
in a module named math_tools
, how would you call it after importing the module?
What happens if you call a function before it has been defined in your Python script?