ExamVeda
Login
Home
1
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy'))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
2
What will be the output of the following Python code?
>>>max("what are you")
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
3
What will be the output of the following Python code?
print(0xA + 0xB + 0xC)
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
4
What will be the output of the following Python code?
>>>example="helloworld"
>>>example[::-1].startswith("d")
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
5
What will be the output of the following Python code?
print('abcdef'.partition('cd'))
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
6
To return the length of string s what command do we execute?
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
7
What will be the output of the following Python code snippet?
print('ab'.zfill(5))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
8
What will be the output of the "hello" +1+2+3?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
9
What will be the output of the following Python code snippet?
print('__foo__'.isidentifier())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
10
What will be the output of the following Python statement?
>>>print('new' 'line')
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board