Vidyalelo
Python · all questions

Functions in Python
practice.

Practice every MCQ with options. Use Show answers when you want the correct option and solution.

182

Questions

10/10

Page

Pick an option on a question to see the right answer and solution.

What will be the output of the following Python code?
def f(p, q, r):
    global s
    p = 10
    q = 20
    r = 30
    s = 40
    print(p,q,r,s)
p,q,r,s = 1,2,3,4
f(5,10,15)

Select an option to see the answer and solution.

Where is function defined?

Select an option to see the answer and solution.