ExamVeda
Login
Home
41
What will be the output of the following Python code?
print(math.isinf(float('-inf')))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
42
What will be the output of the following Python code?
random.randrange(0,91,5)
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
43
What will be the output of the following Python code?
import sys
eval(sys.stdin.readline())
Computer
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
44
What does print(os.geteuid()) print?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
45
What will be the output of the following Python code?
import random
random.choice([10.4, 56.99, 76])
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
46
How can you prevent a module from executing code when imported?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
What the does random.seed(3) return?
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
48
What will be the output of the following code:
import datetime
print(datetime.date.today())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
49
Which of the statements about modules is false?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
50
What will be the output of the following Python code, if the sys module has already been imported?
sys.stdout.write("hello world")
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board