Question
a.
Heeeo
b.
Heelo
c.
Heleo
d.
None
Posted under Python
Engage with the Community - Add Your Comment
Confused About the Answer? Ask for Details Here.
Know the Explanation? Add it Here.
Q. What is “Hello”.replace(“l”, “e”)
Similar Questions
Discover Related MCQs
Q. Say s=”hello” what will be the return value of type(s) ?
View solution
Q. What will be displayed by print(ord(‘b’) – ord(‘a’)) ?
View solution
Q. What is the output of “hello”+1+2+3 ?
View solution
Q. The format function, when applied on a string returns :
View solution
Q. Suppose s is “\t\tWorld\n”, what is s.strip() ?
View solution
Q. Which of the following statement prints hello\example\test.txt ?
View solution
Q. To concatenate two strings to a third what statements are applicable ?
View solution
Q. Given a string example=”hello” what is the output of example.count(l)
View solution
Q. print(0xA + 0xB + 0xC) :
View solution
Q. What arithmetic operators cannot be used with strings ?
View solution
Q. The output of executing string.ascii_letters can also be achieved by:
View solution
Suggested Topics
Are you eager to expand your knowledge beyond Python? We've curated a selection of related categories that you might find intriguing.
Click on the categories below to discover a wealth of MCQs and enrich your understanding of Computer Science. Happy exploring!
Microprocessor
Understand the heart of your computer with our Microprocessor MCQs. Topics include...
Operating System
Dive deep into the core of computers with our Operating System MCQs. Learn about...