ExamVeda
Login
Home
81
What will be the output of the following Python code?
>>> str1 = 'hello'
>>> str2 = ','
>>> str3 = 'world'
>>> str1[-1:]
Discuss
Answer & Solution
Answer: Option D
No explanation is given for this question. Let's Discuss on Board
82
What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', 0, 100))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
83
What will be the output of the following Python code?
print('''
 \tfoo'''.lstrip())
Discuss
Answer & Solution
Answer: Option B
No explanation is given for this question. Let's Discuss on Board
84
hat will be the output of the following Python code snippet?
print('my_string'.isidentifier())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
85
What will be the output of the following Python code?
print("ab\tcd\tef".expandtabs())
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
86
What will be the output of the following Python code?
>>>example = "snow world"
>>>print("%s" % example[4:7])
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
87
What will be the output of the following Python code?
print("Hello {1} and {0}".format('bin', 'foo'))
Discuss
Answer & Solution
Answer: Option A
No explanation is given for this question. Let's Discuss on Board
88
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
89
What will be the output of the following Python code?
print('*', "abcde".center(6), '*', sep='')
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board
90
Say s="hello" what will be the return value of type(s)?
Discuss
Answer & Solution
Answer: Option C
No explanation is given for this question. Let's Discuss on Board