
Python InstitutePCAD - Certified Associate in Data Analytics with Python
Domain 2Objective 1
Core Python Proficiency PCAD-31 Practice Questions (Page 4)
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 16–20
- 16
A data analyst needs to count the frequency of each category in a list of strings. They want to use a dictionary. Which code snippet is most efficient and Pythonic?
Select an answer first - 17
A senior data analyst is reviewing a colleague's Python script that processes large log files. The script uses global variables, has no functions, and re-reads the entire file multiple times. The analyst needs to refactor it for better performance and maintainability. Which refactoring strategy is most effective?
Select an answer first - 18
A data analyst has a large list of dictionaries, each representing a transaction with 'date' and 'amount'. They need to find the total amount for each date, but the list is too large to fit in memory if they create a new list. Which approach is most memory-efficient?
Select an answer first - 19
A data analyst is writing a function that processes a list of numbers and returns a new list with each number squared. They want to ensure the function does not modify the original list and is efficient. Which implementation is best?
Select an answer first - 20
A data scientist is working with a large dataset in a Jupyter notebook. They need to perform a complex aggregation that involves grouping by multiple columns and applying multiple functions. Which library and method is most suitable?
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.