en
Feedback
Coding Quiz Zone

Coding Quiz Zone

Open in Telegram

✨ Part Of @OfficialCodingExpert Dive into the world of computer science, programming, and coding challenges. Sharpen your skills, expand your knowledge, and embark on a journey of continuous learning. Stay tuned for daily quizzes!

Show more
1 575
Subscribers
No data24 hours
No data7 days
-930 days
Posts Archive
class 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)

What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy", 0, 2))
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".endswith("xyy"))
Anonymous voting

What is the default value of encoding in encode()?
Anonymous voting

What will be the output of the following Python code? print('abc'.encode())
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', -10, -1))
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', 2, 11))
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('xyy', 0, 100))
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy', 2))
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy', 1))
Anonymous voting

What will be the output of the following Python code? print("xyyzxyzxzxyy".count('yy'))
Anonymous voting

What will be the output of the following Python code? print("abcdef".center(10, '12'))
Anonymous voting

What will be the output of the following Python code? print("abcdef".center(7, '1'))
Anonymous voting

What will be the output of the following Python code? print("abcdef".center(7, 1))x
Anonymous voting

What will be the output of the following Python code? print('*', "abcdef".center(7), '*')
Anonymous voting

What will be the output of the following Python code? print("abcdef".center(0))
Anonymous voting

What will be the output of the following Python code? print("abcdef".center())
Anonymous voting

What will be the output of the following Python code? print("abc. DEF".capitalize())
Anonymous voting

What will be the output of the following Python code? print("abc DEF".capitalize())
Anonymous voting

Suppose x is 345.3546, what is format(x, “10.3f”) (_ indicates space).
Anonymous voting