Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCAP-31-03 Topic 5 Question 82 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 82
Topic #: 5
[All PCAP-31-03 Questions]

Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

Show Suggested Answer Hide Answer
Suggested Answer: C, D

Contribute your Thoughts:

Idella
5 days ago
D) obj_c.get() == 2 seems like the obvious choice here. I mean, why even bother with all this class and object nonsense when you can just call the method directly?
upvoted 0 times
...
Buddy
6 days ago
I think option A and option D evaluate to True.
upvoted 0 times
...
Alesia
9 days ago
Haha, C._C__VarA == 2 is definitely the way to go! Who needs intuitive variable names when you can just dig into the object's private attributes?
upvoted 0 times
...

Save Cancel