Question 1 of 25
Hints left: 3
Q1
What does the function math.frexp(x) return?
Q2
The module . . . . . . . . is a comparatively faster implementation of the pickle module.
Q3
What is returned by math.isfinite(float('nan'))?
Q4
What is the output of print(math.trunc('3.1'))?
Q5
Which of the following is false about "from-import" form of import?
Q6
What is the output of the following code: from random import randint print(randint(1, 10))
Q7
Which of the following functions helps us to randomize the items of a list?
Q8
The pickle module defines . . . . . . . . exceptions and exports . . . . . . . . classes.
Q9
What will be the output of the following Python code if the system date is: 6/19/2017 tday=datetime.date.today() tdelta=datetime.timedelta(days=10) print(tday+tdelta)
Q10
The output of the functions len("abc") and sys.getsizeof("abc") will be the same.
Q11
What will be the output of the following code: import os print(os.getcwd())
Q12
What will be the output of the following Python code? random.randrange(1,100,10)
Q13
What will be the output of the following Python code? import datetime d=datetime.date(2017,06,18) print(d)
Q14
Which of the following is false about "import modulename" form of import?
Q15
The output of the function len(sys.argv) is . . . . . . . .
Q16
Which of the following functions can accept more than one positional argument?
Q17
The command used to set only the x coordinate of the turtle at 45 units is:
Q18
The following Python code will result in an error. import turtle t=turtle.Pen() t.speed(-45) t.circle(30)
Q19
Which of the following is equivalent to random.randint(3, 6)?
Q20
To include the use of functions which are present in the random library, we must use the option:
Q21
Which of the following Python codes will result in an error? object = ‘a’
Q22
. . . . . . . . is a string literal denoted by triple quotes for providing the specifications of certain program elements.
Q23
How can you check if a module is available and can be imported in Python?
Q24
What is returned by int(math.pow(3, 2))?
Q25
What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?