On This Page

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

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