Question 1 of 25
Hints left: 3
Q1
Program code making use of a given module is called a . . . . . . . . of the module.
Q2
The randrange function returns only an integer value.
Q3
What is output of print(math.pow(3, 2))?
Q4
What will be the output of the following Python code, if the time module has already been imported? def num(m): t1 = time.time() for i in range(0,m): print(i) t2 = time.time() print(str(t2-t1)) num(3)
Q5
What will be the output of the following Python code? >>> -float('inf') + float('inf')
Q6
What will be the output of the following Python code? import turtle t=turtle.Pen t.tilt(75) t.forward(100)
Q7
To sterilize an object hierarchy, the . . . . . . . . function must be called. To desterilize a data stream, the . . . . . . . . function must be called.
Q8
What will be the output shape of the following Python code? import turtle t=turtle.Pen() for i in range(1,4): t.forward(60) t.left(90)
Q9
What will be the output of print(math.copysign(3, -1))?
Q10
What is the purpose of the __doc__ attribute in a Python module?
Q11
All modular designs are because of a top-down design process.
Q12
What is returned by math.expm1(p)?
Q13
What will be the output of the following Python code? import turtle t=turtle.Pen() for i in range(0,5): t.left(144) t.forward(100)
Q14
What does os.fchmod(fd, mode) do?
Q15
Pick the correct statement regarding pickle and marshal modules.
Q16
What will be the output of the following Python code? pickle.HIGHEST_PROTOCOL
Q17
What will be the output shape of the following Python code? import turtle t=turtle.Pen() for i in range(0,6): t.forward(100) t.left(60)
Q18
What is the purpose of the __name__ variable in a Python module?
Q19
The output of the following Python code is either 1 or 2. import random random.randint(1,2)
Q20
What is math.factorial(4.0)?
Q21
How can you access a variable my_variable from a module my_module in Python?
Q22
The value returned when we use the function isoweekday() is . . . . . . . . and that for the function weekday() is . . . . . . . . if the system date is 19th June, 2017 (Monday).
Q23
What will be the output of the following Python code? import turtle t=turtle.Pen() t.color(1,1,1) t.begin_fill() for i in range(0,3): t.forward(100) t.right(120) t.end_fill()
Q24
Which of the following functions returns a value in degrees, counterclockwise from the horizontal right?
Q25
What is the range of values that random.random() can return?