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

Page 7 of 37

A property that stores information about a given class's super-classes is named:

  1. _upper_
  2. _bases_
  3. _ancestors_
  4. _super_

Answer(s): D



Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

  1. obj_b.prop_a == 3
  2. hasattr(obj_b, 'prop_aa')
  3. isinstance(obj_c,A)
  4. B. VarA == 3

Answer(s): C,D



Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)

  1. 'var' in Object.__dict__
  2. 'prop' in Class.__dict
  3. len(Object.__diet__) == 1
  4. 'var1 in Class, dict

Answer(s): A,C



What is the expected behavior of the following code?

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

Answer(s): A






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

PCAP-31-03 Discussions & Posts