×

Multiple-Choice Questions

Web Technologies MCQs

Computer Science Subjects MCQs

Databases MCQs

Programming MCQs

Testing Software MCQs

Digital Marketing Subjects MCQs

Cloud Computing Softwares MCQs

AI/ML Subjects MCQs

Engineering Subjects MCQs

Office Related Programs MCQs

Management MCQs

More

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")
  1. Your id is: 12 and your name is: deepak
  2. Your id is: 11 and your name is: Deepak
  3. Your id is: 13 and your name is: Deepak
  4. 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

Comments and Discussions!

Load comments ↻






Copyright © 2024 www.includehelp.com. All rights reserved.