ExamVeda
Login
Home
41
What will be the output of the following Python code?
print('*', "abcdef".center(7), '*')
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
42
What will be the output of the following Python code?
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
43
What will be the output of the following Python code snippet?
print(''.isdigit())
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
44
What will be the output of the following Python code?
print('ab'.isalpha())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
45
What will be the output of the following Python code snippet?
print('abcd'.translate('a'.maketrans('abc', 'bcd')))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
46
Suppose i is 5 and j is 4, i + j is same as . . . . . . . .
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
47
What will be the output of the following Python code snippet?
print('abcdefcdghcd'.split('cd'))
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 Python code?
print("ab\tcd\tef".expandtabs('+'))
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
49
What will be the output of the following Python code snippet?
print('+99'.zfill(5))
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?
print("abcdef".center(0))
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board