VIP Exclusive

CPA – Certified Associate in Python Programming VIP Practice Exam

CPA — The CPA (Certified Associate in Python Programming) is issued by the Python Institute; it consists of 40 questions answered in 65 minutes with a 70% passing threshold, covering modules/packages, exceptions, strings, OOP, and miscellaneous Python features at an intermediate level.

57
Questions
65m
Time Limit
70.00%
To Pass
Question 1 of 57👑 VIP

You are building a library package named `mathtools`. Inside the package directory you have an empty `__init__.py` and a module `geometry.py` that defines a function `area_circle(r)`. A colleague tries to use it as follows: python import mathtools print(mathtools.geometry.area_circle(5)) This raises an `AttributeError`. What is the most direct fix?

Questions 2–57 and full explanations are VIP-exclusive.