BLACK FRIDAY SALE – Unlock Up to 25% OFF on All Exam Prep! - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute PCAP-31-03 Exam - Topic 8 Question 8 Discussion

Posted by Cecily on May 09, 2022 at 06:12 AM

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

Suggested Answer: D

Get Premium PCAP-31-03 Questions as Interactive Web-Based Practice Test or PDF Real Exam Format Detailed Explanations Instant Access Get Your Practice Test
11 comments · newest first
AR
Ariel 1 year ago
I’m surprised it’s BB, I expected something different!
SA
Samira 1 year ago
Nope, it's definitely not CC, BB all the way!
HO
Hortencia 1 year ago
Wait, are you sure? I thought it might be CC.
JO
Joesph 1 year ago
I totally agree, it's definitely BB!
JO
Jose 1 year ago
The output should be BB.
JA
Janessa 1 year ago
I practiced a question like this, and I think the answer is "BC" since it seems to follow the last-in-first-out principle for method resolution.
SH
Shenika 1 year ago
I'm a bit confused about the constructor calls in the hierarchy. I feel like it could be "AA," but I need to double-check the class relationships.
EM
Emelda 1 year ago
I remember a similar question where the output was determined by the order of inheritance. I think it might be "BB" or "CC."
DO
Dottie 1 year ago
I think the output should be based on the method overriding, but I'm not entirely sure which class's method gets called first.
CA
Carman 1 year ago
Hmm, I'm a little unsure about this one. I know revenue is a key figure, but I'm not sure if that's considered the "top line." I'll have to review my notes on income statement structure.
FA
Fannie 1 year ago
Hmm, I'm a bit unsure about this one. The options all seem related to IS strategy, but I'm not totally confident which one is the best definition. I'll have to think it through carefully.
0/2000 characters

Save Cancel