ExamVeda
Login
Home
61
What will be the output of the following Python code?
print('{0:.2}'.format(1/3))
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
62
What will be the output of the following Python code?
print('xyxxyyzxxy'.lstrip('xyy'))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
63
The format function, when applied on a string returns . . . . . . . .
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
64
What will be the output of the following Python code?
print("abc DEF".capitalize())
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
65
What will be the output of the following Python code?
print('ab,12'.isalnum())
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
66
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 2))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
67
What will be the output of the following Python code?
print("abcdef".find("cd") == "cd" in "abcdef")
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
68
What will be the output of the following Python code?
print("Hello {0} and {1}".format(('foo', 'bin')))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
69
What will be the output of the following Python code?
print("abcdef".center())
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
70
What will be the output of the following Python code?
>>>example = "snow world"
>>>example[3] = 's'
>>>print example
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board