Vidyalelo
Python · Q133

MCQs for Python Strings: Exam

Programming · Python · question 133

Q133

What will be the output of the following Python code? 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))

A.
True False
B.
True True
C.
False True
Answer
D.
False False

Answer: Option C

Solution

Answer: Option C
No explanation is given for this question Let's Discuss on Board