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 4 Question 59 Discussion

Actual exam question for Python Institute's PCAP-31-03 exam
Question #: 59
Topic #: 4
[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: A, B

Contribute your Thoughts:

Cherelle
1 months ago
Haha, this question is a real Python puzzle! I'm going with B and D, but I might throw in a little bit of C just for fun.
upvoted 0 times
Kandis
19 days ago
I agree, those seem like the most likely options.
upvoted 0 times
...
Corrinne
22 days ago
I think B and D are correct.
upvoted 0 times
...
...
Long
2 months ago
Eve
upvoted 0 times
Marilynn
8 days ago
Catina: D) obj_c.get() == 2
upvoted 0 times
...
Barney
16 days ago
User 3: C) has atr (B, 'get')
upvoted 0 times
...
Catina
19 days ago
User 2: B) C._C__VarA == 2
upvoted 0 times
...
Jamal
26 days ago
B) C._C__VarA == 2
upvoted 0 times
...
Jamal
27 days ago
A) is instance(obj_b,C)
upvoted 0 times
...
Elinore
28 days ago
User 1: A) is instance(obj_b,C)
upvoted 0 times
...
...
Sherron
2 months ago
I believe option D) obj_c.get() == 2 also evaluates to True because obj_c.get() returns 2.
upvoted 0 times
...
Linwood
2 months ago
I agree with Chu, the variable C._C__VarA should be equal to 2.
upvoted 0 times
...
Chu
2 months ago
I think option B) C._C__VarA == 2 evaluates to True.
upvoted 0 times
...

Save Cancel