PCPP-32-101 · Question #15
What is a __traceback__? (Choose two.)
The correct answer is A. An attribute owned by every exception object D. An attribute that holds interesting information that is particularly useful when the programmer. A traceback is an attribute of an exception object that contains a stack trace representing the call stack at the point where the exception was raised. The traceback attribute holds information about the sequence of function calls that led to the exception, which can be useful…
Question
What is a traceback? (Choose two.)
Options
- AAn attribute owned by every exception object
- BA special method delivered by the traceback module to retrieve a full list of strings describing the
- CAn attribute that is added to every object when the traceback module is imported
- DAn attribute that holds interesting information that is particularly useful when the programmer
How the community answered
(43 responses)- A93% (40)
- B2% (1)
- C5% (2)
Explanation
A traceback is an attribute of an exception object that contains a stack trace representing the call stack at the point where the exception was raised. The traceback attribute holds information about the sequence of function calls that led to the exception, which can be useful for debugging and error reporting.
Topics
Community Discussion
No community discussion yet for this question.