Free PCAP-31-03 Exam Braindumps (page: 7)

Page 6 of 37

What is the expected behavior of the following code?

  1. it outputs 1
  2. it outputs 0
  3. it raises an exception
  4. it outputs 2

Answer(s): A



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

  1. class Class_4 (D, A) : pass
  2. class Class_1(C,D): pass
  3. class Class_3(A,C): pass
  4. class Class_2(B,D): pass

Answer(s): A,B



What is true about Python class constructors? (Select two answers)

  1. the constructor's first parameter identifies an object currently being created
  2. the constructor cannot use the default values of the parameters
  3. the constructor can be invoked directly under strictly defined circumstances
  4. super-class constructor is invoked implicitly during constructor execution

Answer(s): A,C



What is the expected behavior of the following code?

  1. it outputs 0
  2. it outputs 1
  3. it raises an exception
  4. it outputs 2

Answer(s): C






Post your Comments and Discuss Python Institute PCAP-31-03 exam with other Community members:

PCAP-31-03 Discussions & Posts