Question-144: What would happen or printed when you run below program?

def calculate(x):

    print(x*x+10)

x=5

calculate()

 

  1. 35
  2. Get all Questions and Answer from here
  3. You need to have paid subscription to access all questions
  4. 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.

Why Dont you prepare for Python Certifications and Interview Questions with 250+ Questions and Answer : Check Here

Real Exam Number of Questions: 70 Questions
Real Exam Pass Score: 70%
Time Allotted: 90 minutes to complete exam