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 more1 575
Subscribers
No data24 hours
No data7 days
-930 days
Posts Archive
1 575
class Name:
def __init__(self, firstName, mi, lastName):
self.firstName = firstName
self.mi = mi
self.lastName = lastName
firstName = "John"
name = Name(firstName, 'F', "Smith")
firstName = "Peter"
name.lastName = "Pan"
print(name.firstName, name.lastName)1 575
class Count:
def __init__(self, count = 0):
self.__count = count
c1 = Count(2)
c2 = Count(2)
print(id(c1) == id(c2), end = " ")
s1 = "Good"
s2 = "Good"
print(id(s1) == id(s2))1 575
To check whether string s1 contains another string s2, use ________
1 575
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.
1 575
To retrieve the character at index 3 from string s=βHelloβ what command do we execute (multiple answers allowed)?
1 575
Which of the following element is used to create any shape that consists of only straight lines?
1 575
Which of the following is not an attribute used with SVG ellipse?
1 575
Which of the following element is used to create an SVG ellipse?
1 575
Which of the following element is used to create a SVG rectangle?
