ExamVeda
Login
Home
51
What will be the output of the following Python code if the system date is 21st June, 2017 (Wednesday)?
tday=datetime.date.today()
print(tday.isoweekday())
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
52
What is the result of math.fsum([.1 for i in range(20)])?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
53
What is x if x = math.isfinite(float('0.0'))?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
54
What will be the output of the following Python code?
import random
random.choice(2,3,4)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
55
How can you uninstall a Python module using pip?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
56
What will be the output of the following Python code?
import datetime
d=datetime.date(2016,7,24)
print(d)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
57
How can you create your own module in Python?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
58
What is the value of x if x = math.factorial(0)?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
59
Which of the following is equivalent to random.randrange(3)?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
60
Which of the following will never be displayed on executing print(random.choice({0: 1, 2: 3}))?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board