Which TWO statements about the __init__.py file in a Python package are true?
Defining __all__ in __init__.py controls what is exported with 'from package import *'.
Why this answer
Option B is correct because the `__init__.py` file can define the `__all__` variable, which is a list of module names that will be exported when a client uses `from package import *`. This controls the public API of the package by specifying which submodules or names are accessible via wildcard imports.
Exam trap
Python Institute often tests the misconception that `__init__.py` is required for every package (it is not in Python 3.3+ due to implicit namespace packages) and that it must contain imports or code (it can be empty and still work).