Python Institute PCPP-32-101 - Certified Professional in Python Programming 1 Exam
Page: 3 / 16
Total 80 questions
Question #11 (Topic: Exam A)
Select the true statement about the __name__ attribute.
A. __name__ is a special attribute, which is inherent for both classes and instances, and it contains information about the class to which a class instance belongs.
B. __name__ is a special attribute, which is inherent for both classes and instances, and it contains a dictionary of object attributes.
C. __name__ is a special attribute, which is inherent for classes, and it contains information about the class to which a class instance belongs.
D. __name__ is a special attribute, which is inherent for classes, and it contains the name of a class.
Answer: D
Question #12 (Topic: Exam A)
What is a static method?
A. A method that works on the class itself
B. A method decorated with the @method trait
C. A method that requires no parameters referring to the class itself
D. A method that works on class objects that are instantiated
Answer: C
Question #13 (Topic: Exam A)
What is true about type in the object-oriented programming sense?
A. It is the bottommost type that any object can inherit from.
B. It is a built-in method that allows enumeration of composite objects
C. It is the topmost type that any class can inherit from.
D. It is an object used to instantiate a class.
Answer: C
Question #14 (Topic: Exam A)
What does the term deserialization mean? (Choose the best answer.)
A. It is a process of creating Python objects based on sequences of bytes
B. It is a process of assigning unique identifiers to every newly created Python object
C. It is another name for the data transmission process
D. It is a process of converting the structure of an object into a stream of bytes
Answer: A
Question #15 (Topic: Exam A)
What is a __traceback__? (Choose two.)
A. An attribute owned by every exception object
B. A special method delivered by the traceback module to retrieve a full list of strings describing the traceback
C. An attribute that is added to every object when the traceback module is imported
D. An attribute that holds interesting information that is particularly useful when the programmer wants to store exception details in other objects
Answer: AD