Home »
MCQs »
Python MCQs
What will be the output of the following Python code? Question 8
55. What will be the output of the following Python code?
def show(id,name):
print("Your id is :",id,"and your name is :",name)
show(12,"deepak")
- Your id is: 12 and your name is: deepak
- Your id is: 11 and your name is: Deepak
- Your id is: 13 and your name is: Deepak
- None of the mentioned above
Answer: A) Your id is: 12 and your name is: deepak
Explanation:
If we define a function in Python with parameters, and at the time of calling function it requires parameters. In above code passing arguments are 12, and Deepak. So, Output will be Your id is: 12 and your name is: deepak