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