Q.1 : In Python,
Answer : 4. All of the above
Q.2: Assume that the 'min' function computes the minimum of two values, and 'max' function computes the maximum of two values. Let x1, x2 be 2 distinct integers. What can you say about the following program (using python 3.X version):
y1=min(x1,x2)
y2=max(y1,x1)
Answer : 4. All of the above
Q.3 : Which of the below statement is/are true for global keyword in python?
Answer : 4. All of the above
Q.4 : What will be the output of the following code :
def keywordExample(x=1,y=2,z=4):
sum=X+y
min=sum-z
print(min)
keywordExample(y=8,,x=4,z=y)
Answer : 1. Error
Q.5 : Which of the following statement is false for string in python:
Answer : 2. strings are mutable
No comments:
Post a Comment