Functions Quiz 8

Share with others

Welcome to your Functions Quiz 8

Q71. Which of the following mathematical function return absolute value of a number?

Q72. Which of the following Python module need to be imported to invoke sin( ) function?

Q73. Which of the following module which need to be imported to invoke randint( ) function?

Q74. Which of the following mathematical function return factorial of a number?

Q75. Name the function required to check if a string contains only uppercase letters?

Q76. Which of the following function returns the length of a sequence?

Q77. Which of the following function is not invoked by math module?

Q78. Which method of pickle module reads data from a binary file?

Q79. Write the output of the following:

def c(x,y):

    if x % y :

         return x+5

    else:

        return y+10

print(c(20,5))

Q80. Write the output of the following:

def guess(n="k", a=20, r="t"):
     return a, n, r
t=guess("k", "t", 7)
print(t)


Share with others

Leave a Reply

error: Content is protected !!