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

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



Page 7 of 37



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

Mohammed commented on November 15, 2024
After checking these questions and reviewing all the answers and Explanations I realized that I would not have been able to pass the exam based on my current knowledge. This is completely changed my approach in how I am going to prepare now.
UNITED STATES
upvote

Nigel commented on September 27, 2024
Managed to pass my exam bu using the full version of this exam. This free version has less questions compared to PDF.
Spain
upvote

Idris Abraham Idilli commented on September 23, 2024
Very interesting
Anonymous
upvote