What will be the output of the following code?
def my_func(var1=100, var2=200):
var1 += 10
var2 = var2 - 10
return var1+var2
print(my_func(50),my_func())
- Online Exam Test Papers | - MCQs[multiple choice questions and answers ] | - Mock Test Papers | - Practice Papers | - Sample Test Papers |
Question:
What will be the output of the following code?
def my_func(var1=100, var2=200):
var1 += 10
var2 = var2 - 10
return var1+var2
print(my_func(50),my_func())
1.100 200
2.150 300
3.250 75
4.250 300
Answer:4
More MCQS Questions and answers
R4R Team
R4Rin Top Tutorials are Core Java,Hibernate ,Spring,Sturts.The content on R4R.in website is done by expert team not only with the help of books but along with the strong professional knowledge in all context like coding,designing, marketing,etc!