M
Problem Solving and Python Programming MCQs | Page - 18
Dear candidates you will find MCQ questions of Problem Solving and Python Programming here. Learn these questions and prepare yourself for coming examinations and interviews. You can check the right answer of any question by clicking on any option or by clicking view answer button.
Q. What will be the output of the following
M
Q. What is “Hello”.replace(“l”, “e”)?
M
Q. To retrieve the character at index 3 from string s=”Hello” what command do we execute (multiple answers allowed)?
M
Q. To return the length of string s what command do we execute?
M
Q. If a class defines the str (self) method, for an object obj for the class, you can use which command to invoke the str method.
M
Q. To check whether string s1 contains another string s2, use
M
Q. Suppose i is 5 and j is 4, i + j is same as
M
Q. print(id(s1) == id(s2))
M
Q. What function do you use to read a string?
M
Q. ), '*', sep= '')
Jump to
