260). What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy'))

[A]2
[B]0
[C]error
[D]none of the mentioned

Show Answer

261). What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 1))

[A]2
[B]0
[C]1
[D]none of the mentioned

Show Answer

262). What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('yy', 2))

[A]2
[B]0
[C]1
[D]none of the mentioned

Show Answer

263). What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', 0, 100))

[A]2
[B]0
[C]1
[D]error

Show Answer

264). What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', 2, 11))

[A]2
[B]0
[C]1
[D]error

Show Answer

265). What will be the output of the following Python code?
print("xyyzxyzxzxyy".count('xyy', -10, -1))

[A]2
[B]0
[C]1
[D]error

Show Answer

269). What will be the output of the following Python code?
print("xyyzxyzxzxyy".endswith("xyy", 0, 2))

[A]0
[B]1
[C]True
[D]False

Show Answer