
Python InstitutePCAP - Certified Associate Python Programmer
Domain 1Objective 2
PCAP-31-03 1.2 Perform Evaluations Using the Math Module PCAP-31 Practice Questions (Page 1)
Part of the Modules and Packages domain, which accounts for 12% of the PCAP-31 exam. Python Institute does not publish an official question count, but from its 65-minute exam (~25–45 total, ~3–5 in this domain), expect 1–1 from this objective — we provide 16 practice questions to prepare you well beyond it. (estimate)
16questions here
4free pages
7concepts
12%of the exam
Questions 1–5
- 1
A statistics package needs to compute the number of ways to arrange 10 distinct books on a shelf. The developer writes a function that uses the math module. Which expression correctly computes this value?
Select an answer first - 2
A game development studio tracks player scores. For a leaderboard, scores are stored as floats. The team needs to display the score as the smallest integer that is greater than or equal to the player's score (e.g., 89.2 becomes 90). Which function should be applied to the score?
Select an answer first - 3
A QA engineer is writing a test to verify a function that counts permutations of n distinct items. The test needs to compute the number of ways to arrange 7 items, which is 7 × 6 × 5 × 4 × 3 × 2 × 1. Which expression correctly computes this value using the math module?
Select an answer first - 4
A physics engine needs to compute the magnitude of a 3D vector with components (3, 4, 12). The developer knows math.hypot() accepts only two arguments. Which approach correctly computes the magnitude using the math module?
Select an answer first - 5
A robotics team needs to calculate the distance a robot travels diagonally across a rectangular field. The field is 30 meters wide and 40 meters long. The team wants to use the math module to compute this distance directly. Which function call correctly computes the diagonal distance?
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. “PCAP-31” is a trademark of its owner, used for identification only.