PCAP • Hard Questions
The 25 most difficult PCAP questions — topics that eliminate candidates. Full explanations for every option.
A Python class 'Shape' defines an abstract method 'area'. Subclasses 'Circle' and 'Square' implement 'area'. A function 'calculate_area(shape)' expects a 'Shape' instance. Which principle ensures that the function works correctly without knowing the specific subclass?