ExamVeda
Login
Home
51
What is returned by math.modf(1.0)?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
52
What will be the output of the following Python code?
import sys
eval(sys.stdin.readline())
"India"
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
53
The output of the function len(sys.argv) is . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
54
How can you check if a module is available and can be imported in Python?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
55
What is the output of print(math.trunc('3.1'))?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
56
. . . . . . . . is a string literal denoted by triple quotes for providing the specifications of certain program elements.
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
57
What is the output of the following code:
from random import randint
print(randint(1, 10))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
58
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)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
59
Which of the following is equivalent to random.randint(3, 6)?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
60
What is the interval of the value generated by the function random.random(), assuming that the random module has already been imported?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board