Sail E0 Webinar
Question
What is the output of the code shown below?class Truth: passx=Truth()bool(x)
Options:
A .  pass
B .  true
C .  false
D .  error
Answer: Option B


If the truth method is not defined, the object is considered true. Hence the output of the code shown above is true.



Was this answer helpful ?
Next Question

Submit Solution

Your email address will not be published. Required fields are marked *

Latest Videos

Latest Test Papers