PCAP • Practice Test 30
Free PCAP practice test — 15 questions with explanations. Set 30. No signup required.
A Python package 'analytics' contains a subpackage 'models' with module 'regression.py'. Inside 'regression.py', there is a function 'linear_fit' that depends on 'numpy'. The developer wants to ensure that 'numpy' is imported only once and available throughout the package. Where should the import 'import numpy as np' be placed?
Choose an answer to begin — your selection is scored in the full session.
15 questions · instant feedback and full explanations after every question.