nerdexam
Python_Institute

PCAP-31-03 · Question #128

What is true about Object-Oriented Programming in Python? (Select two answers)

The correct answer is A. encapsulation allows you to protect some data from uncontrolled access C. inheritance is the relation between a superclass and a subclass. See the full explanation below for the reasoning.

Question

What is true about Object-Oriented Programming in Python? (Select two answers)

Options

  • Aencapsulation allows you to protect some data from uncontrolled access
  • Bthe arrows on a class diagram are always directed from a superclass towards its subclass
  • Cinheritance is the relation between a superclass and a subclass
  • Dan object is a recipe for a class

How the community answered

(35 responses)
  • A
    80% (28)
  • B
    9% (3)
  • D
    11% (4)

Community Discussion

No community discussion yet for this question.

Full PCAP-31-03 Practice