ExamVeda
Login
Home
41
What is the default value of encoding in encode()?
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 snippet?
print('{:$}'.format(1112223334))
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?
print('ab12'.isalnum())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
44
What will be the output of the following Python code?
print("ccdcddcd".find("c"))
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
45
To check whether string s1 contains another string s2, use . . . . . . . .
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
46
What will be the output of the following Python code snippet?
print('abef'.replace('cd', '12'))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
47
Suppose x is 345.3546, what is format(x, "10.3f") (_ indicates space).
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 statement?(python 3.xx)
>>>print(format("Welcome", "10s"), end = '#')
>>>print(format(111, "4d"), end = '#')
>>>print(format(924.656, "3.2f"))
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('for'.isidentifier())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
50
What will be the output of the following Python code snippet?
print('ab\ncd\nef'.splitlines())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board