On This Page

This set of Problem Solving and Python Programming Multiple Choice Questions & Answers (MCQs) focuses on Problem Solving And Python Programming Set 5

Q1 | )
Q2 | )
Q3 | ): print(i)
Q4 | 0): print(i)
Q5 | 0)): print(i)
Q6 | ])
Q7 | ] in a: print(a[0])
Q8 | >>>"a"+"bc
Q9 | >>>"abcd"[2:]
Q10 | >>> str1[-1:]
Q11 | What arithmetic operators cannot be used with strings?
Q12 | >>>print (r"\nhello")
Q13 | >>>print('new' 'line')
Q14 | >>>str1[::-1]
Q15 | xA + 0xB + 0xC)
Q16 | >>>print "%d %d" % (obj.o1, obj.o2)
Q17 | >>>print(temp.id)
Q18 | >>>print("%s" % example[4:7])
Q19 | >>>print example
Q20 | >>>max("what are you")
Q21 | Given a string example=”hello” what is the output of example.count(‘l’)?
Q22 | >>>example.find("e")
Q23 | >>>example.rfind("e")
Q24 | >>>example[::-1].startswith("d")
Q25 | To concatenate two strings to a third what statements are applicable?