Question-144: What would happen or printed when you run below program?
def calculate(x):
print(x*x+10)
x=5
calculate()
- 35
- Get all Questions and Answer from here
- You need to have paid subscription to access all questions
- Thanks for considering Python Certification Material
Answer: D
Exp:
Function signature
- Function signature must match when you call a function.
- In below example, function would give an error.
- Because your function signature is expecting one argument, but while calling you are not providing any argument.
def calculate(x): print("Your calculated value is ", x*x+10)
i=0 while(i<10):
You can access to full explanation to question and answer from this page. |