Certified Professional in Python Programming (PCPP-32-101) — Question 35

What is a __traceback__? (Choose two.)

Answer options

Correct answer: A, D

Explanation

The correct answers, A and D, describe the characteristics of a traceback in Python. Option A is accurate because every exception object has a traceback attribute that provides context about the error. Option D is also correct as it indicates that the traceback contains useful information for storing exception details. Options B and C are incorrect because they misrepresent the function and behavior of the traceback module and its attributes.