Python_Institute
PCAP-31-03 · Question #161
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
The correct answer is A. 'var' in Class.__dict__ C. len(Object.__dict__) == 1. See the full explanation below for the reasoning.
Question
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
Options
- A'var' in Class.dict
- B'var' in Object.dict
- Clen(Object.dict) == 1
- D'prop' in Class.dict
How the community answered
(35 responses)- A71% (25)
- B9% (3)
- D20% (7)
Community Discussion
No community discussion yet for this question.