Review a compact PCAP-31-03 cheat sheet for modules, exceptions, strings, object-oriented programming, comprehensions, lambdas, closures, and file handling before IT Mastery practice.
Use this cheat sheet before a PCAP-31-03 practice set. The exam moves beyond syntax recall into runtime behavior: imports, exceptions, strings, objects, comprehensions, closures, and files must be traced precisely.
| Item | PCAP cue |
|---|---|
| Vendor | Python Institute / OpenEDG |
| Certification | Certified Associate Python Programmer |
| Exam code / family | PCAP-31-03 / PCAP-31-0x |
| Main practice behavior | intermediate Python code tracing and object-model reasoning |
| IT Mastery status | live practice available |
| Domain | Weight | What to know | Common trap |
|---|---|---|---|
| Modules and Packages | 12% | imports, aliases, module execution, namespace behavior, packages | assuming imported names always land in the same namespace |
| Exceptions | 14% | try, except, else, finally, custom exceptions, propagation | catching the wrong exception path |
| Strings | 18% | indexing, slicing, immutability, methods, formatting, parsing | assuming a string method changes the original string |
| Object-Oriented Programming | 34% | classes, instances, inheritance, methods, attributes, overriding, encapsulation | mixing class attributes, instance attributes, and method dispatch |
| Miscellaneous Python behavior | 22% | comprehensions, lambdas, closures, generators, file I/O, context managers | tracing only the expression and missing the surrounding scope or file state |
finally behavior versus normal return flow: cleanup logic can still execute.import x and from x import y create different references.Use the free diagnostic once, then classify misses by runtime rule: namespace, exception path, string operation, object model, or file/comprehension behavior. For OOP misses, draw the class and instance attributes before repeating mixed sets.