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 70 Discussion

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

The following class hierarchy is given. What is the expected output of the code?

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Rachael
4 days ago
Ah, I get it now! The output will be CC because the overridden method in the child class is being called. This is a classic inheritance question.
upvoted 0 times
...
Scarlet
10 days ago
Hold on, I think I see what's happening here. The method in the child class is overriding the parent class method, so the output should be AA. Time to put on my thinking cap!
upvoted 0 times
...
Cathrine
12 days ago
I am not sure, but I think it might be C) AA.
upvoted 0 times
...
Ozell
13 days ago
I believe the output will be D) BC.
upvoted 0 times
...
Kenneth
16 days ago
Hmm, this looks like a tricky one. I'm going to go with B) CC, since that seems like the most logical output based on the class hierarchy.
upvoted 0 times
...
Allene
16 days ago
I think the expected output is A) BB.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77