
Python InstitutePCAD - Certified Associate in Data Analytics with Python
Domain 2Objective 1
Core Python Proficiency PCAD-31 Practice Questions (Page 9)
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 41–45
- 41
A data analyst is writing a function that takes a list of numbers and returns the median. The function should not modify the input list. Which implementation is correct and efficient?
Select an answer first - 42
A data analyst has a list of customer IDs that may contain duplicates. The analyst needs to produce a list of unique customer IDs in the order they first appear. Which approach is both efficient and preserves the original order?
Select an answer first - 43
A data analyst has a set of customer IDs and a list of orders, each order being a tuple (customer_id, amount). They need to find the total amount spent by customers in the set. Which code snippet is most efficient?
Select an answer first - 44
A data analyst writes a function to clean a list of strings by stripping whitespace and converting to lowercase. The function should modify the list in place and return None. Which implementation is correct?
Select an answer first - 45
A data analyst is working in a Jupyter notebook and needs to load a CSV file into a pandas DataFrame, then display the first 5 rows. Which code snippet correctly accomplishes this?
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.