Question 1 of 25
Hints left: 3
Q1
Lambda functions cannot be pickled because:
Q2
Which of the following will not be returned by random.choice("1 ,")?
Q3
What is returned by math.isfinite(float('inf'))?
Q4
What will be the output of the following Python function, assuming that the random module has already been imported? random.uniform(3,4)
Q5
What will be the output of the following Python code if the system date is 18th June, 2017 (Sunday)? tday=datetime.date.today() print(tday.weekday())
Q6
What will be the output of the following Python code? import turtle t=turtle.Pen() t.resizemode(“examveda”) t.resizemode()
Q7
What will be the output of the following Python code? import time time.asctime()
Q8
What is the purpose of the from ... import ... statement in Python?
Q9
How can you determine the path of the currently executing script in Python?
Q10
What will be the output of the following code: import math print(math.pi)
Q11
What will be the output of the following Python code? import time t=(2010, 9, 20, 8, 45, 12, 6, 0, 0) time.asctime(t)
Q12
What is the purpose of the sys.path list in Python?
Q13
What is the purpose of the import statement in Python?
Q14
How can you reload a module in Python?
Q15
What does the as keyword do when used with the import statement?
Q16
What is a namespace in Python?
Q17
Which of the following can be used to create a directory?
Q18
What will be the output of the following code: from math import sqrt print(sqrt(16))
Q19
The function used to alter the thickness of the pen to 'x' units:
Q20
Which of the following is not an advantage of using modules?
Q21
What is the purpose of the from ... import * statement in Python?
Q22
What is the purpose of the __init__.py file in a Python module?
Q23
How can you access a function my_function from a module my_module in Python?
Q24
What will be the output if we try to extract only the year from the following Python code? (time.struct_time(tm_year=2017, tm_mon=6, tm_mday=25, tm_hour=18, tm_min=26, tm_sec=6, tm_wday=6, tm_yday=176, tm_isdst=0)) import time t=time.localtime() print(t)
Q25
What does os.link() do?