String in Python Quiz 4

Share with others

Enter details and click on Next

Q31. Write the output of the following:

print("A#B#C#D#E".split("#",2))

Q32. Write the output of the following:

print("A#B#C#D#E".replace("#","?"))

Q33. Write the output of the following:

print("I love my Country".find("o",4))

Q34. Write the output of the following.

print('#'.join("12345"))

Q35. Which of the following is not a String built in functions?

Q36. Write the output of the following:

for i in range(91,100):
      if chr(i)=='a':
           pass
     else:
          print(i)

Q37. Write the output of the following:

print(len("\\\\\\///"))

Q38. Which of the following function returns the ASCII/Unicode value character?

Q39. Which of the following statements will also return the same result as given statement

print("Computer" + "Computer")

Q40. Write the output of the following:

for i in range(len("python"),12,2):
      print("python"[i-6])


Share with others

Leave a Reply

error: Content is protected !!