ExamVeda
Login
Home
51
What will be the output of the following Python code?
hex(255), int('FF', 16), 0xFF
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
52
What is the primary use of the @final decorator in Python?
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
53
What will be the output of the following Python code?
'%.2f%s' % (1.2345, 99)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
54
What is the role of the @abstractmethod decorator in Python?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
55
What will be the output of the following Python code snippet?
'%(qty)d more %(food)s' %{'qty':1, 'food': 'spam'}
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
56
What does the * symbol do when used in a function's parameter list?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
57
What will be the output of the following Python code snippet?
X=”Exam-Veda”
print(“%56s”,X)
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 function?
def f(p, q):
	return p%q
f(0, 2)
f(2, 0)
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
59
What is the output of the code: print("{:.2f}".format(3.14159))?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
60
What will be the output of the following Python expression if x=56.236?
print("%.2f"%x)
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board