Question: Which one is true about the following function? def exam _ function ( a , b , c = cng 1 1 1

Which one is true about the following function?
def exam_function (a,b, c="cng111") :
print (a,b,c)
exam_function(1,2,"cng111 final exam")
a. error! In the function call, strings should be sent to a and b not integers (1,2)
b. error! c cannot be assigned to a string in the parameter list
c. error! c has string "cng111", so we cannot send another string to c in the function call
d. a gets the value of 1,b gets the value of 2. c is overwritten and it gets string "cng111 final exam"
 Which one is true about the following function? def exam_function (a,b,

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!