Q101
Open questionprint("xyyzxyzxzxyy".count('yy'))Select an option to see the answer and solution.
Practice every MCQ with options. Use Show answers when you want the correct option and solution.
160
Questions
6/8
Page
Pick an option on a question to see the right answer and solution.
Q101
Open questionprint("xyyzxyzxzxyy".count('yy'))Select an option to see the answer and solution.
Q102
Open question>>>max("what are you")Select an option to see the answer and solution.
Q103
Open questionprint(0xA + 0xB + 0xC)Select an option to see the answer and solution.
Q104
Open question>>>example="helloworld"
>>>example[::-1].startswith("d")Select an option to see the answer and solution.
Q105
Open questionprint('abcdef'.partition('cd'))Select an option to see the answer and solution.
Q106
Open questionSelect an option to see the answer and solution.
Q107
Open questionprint('ab'.zfill(5))Select an option to see the answer and solution.
Q108
Open questionSelect an option to see the answer and solution.
Q109
Open questionprint('__foo__'.isidentifier())Select an option to see the answer and solution.
Q110
Open question>>>print('new' 'line')Select an option to see the answer and solution.
Q111
Open question>>>example = "helle"
>>>example.rfind("e")Select an option to see the answer and solution.
Q112
Open questionprint('abcefd'.replace('cd', '12'))Select an option to see the answer and solution.
Q113
Open questionprint("abcdef".find("cd"))Select an option to see the answer and solution.
Q114
Open question>>>print (r"\nhello")Select an option to see the answer and solution.
Q115
Open questionSelect an option to see the answer and solution.
Q116
Open questionclass father:
def __init__(self, param):
self.o1 = param
class child(father):
def __init__(self, param):
self.o2 = param
>>>obj = child(22)
>>>print "%d %d" % (obj.o1, obj.o2)Select an option to see the answer and solution.
Q117
Open questionprint('The sum of {0:b} and {1:x} is {2:o}'.format(2, 10, 12))Select an option to see the answer and solution.
Q118
Open questionprint("xyyzxyzxzxyy".count('yy', 1))Select an option to see the answer and solution.
Q119
Open questionprint(''''''.isspace())Select an option to see the answer and solution.
Q120
Open questionSelect an option to see the answer and solution.