Examers.io
ExamsOrganizationsHow it worksPricingHelp & FAQ
Python Institute logo

Python InstitutePCAD - Certified Associate in Data Analytics with Python

Domain 2Objective 1

Core Python Proficiency PCAD-31 Practice Questions (Page 7)

Part of the Programming and Database Skills domain, which accounts for 33.3% of the PCAD-31 exam. Python Institute does not publish an official question count, but from its 60-minute exam (~25–40 total, ~8–8 in this domain), expect 2–2 from this objective — we provide 50 practice questions to prepare you well beyond it. (estimate)

50questions here
10free pages
5concepts
33.3%of the exam

Questions 31–35

  1. 31application · medium

    A data analyst receives a list of daily sales figures as a Python list of floats. Some entries are missing (represented as None). The analyst needs to compute the average of the available values, ignoring the None entries, and return the result as a float. The analyst writes a function to do this. Which function implementation correctly handles the missing data and returns the average?

    Select an answer first
  2. 32application · easy

    A data analyst has a dictionary mapping employee IDs to their department. They need to find the department of a specific employee, but the ID might not exist. Which code snippet safely returns the department or 'Unknown' if not found?

    Select an answer first
  3. 33application · easy

    A data analyst needs to iterate over two lists of equal length simultaneously to compute the sum of each pair. Which loop construct is most Pythonic and efficient?

    Select an answer first
  4. 34application · easy

    A data analyst is writing a script that will be run daily. They want to ensure that the script's main logic only runs when the script is executed directly, not when imported as a module. Which code pattern should they use?

    Select an answer first
  5. 35expert · hard

    A data analyst is working with a large dataset in pandas. They need to filter rows where a column 'age' is greater than 30 and another column 'salary' is not null. They also need to select only the 'name' and 'salary' columns. Which code snippet is most efficient and correct?

    Select an answer first
Finished these 5 questions?

Review the revealed explanations, or continue through the curriculum.

Free Basic Practice is a study aid with revealable answers — not a scored exam. Examers.io is independent and not affiliated with or endorsed by Python Institute. “PCAD-31” is a trademark of its owner, used for identification only.