PCAP-31-03 Exam QuestionsBrowse all questions from this exam

PCAP-31-03 Exam - Question 52


Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Choose two.)

Show Answer
Correct Answer: CD

Based on the provided inheritance set, 'D' classes can be declared because class 'D' inherits from 'B' and 'C', both of which ultimately inherit from 'A', which is valid. Similarly, class 'Class_4(C,B)' is properly declared because it inherits from both 'C' and 'B', and both 'C' and 'B' inherit from 'A'. Therefore, the proper declarations are 'Class_1(D): pass' and 'Class_4(C,B): pass'.

Discussion

2 comments
Sign in to comment
kstrOptions: CD
Jul 12, 2024

CD correct tested

DKAT2023Options: CD
Jul 12, 2024

C and D are corrects