1.1.1.0 PCEP-30-02 Practice Test Compendium – Exam Block #4
Exam block #4: Functions and Exceptions
Study Pages
Objectives covered by the block:
PCEP 4.1 Decompose the code using functions
defining and invoking user-defined functions and generators; the return keyword, returning results, the None keyword, recursion.
PCEP 4.2 Organize interaction between the function and its environment
parameters vs. arguments; positional, keyword and mixed argument passing; default parameter values, name scopes, name hiding (shadowing), the global keyword.
PCEP 4.3 Python Built-In Exceptions Hierarchy
BaseException, Exception, SystemExit, KeyboardInterrupt, abstract exceptions, ArithmeticError, LookupError along with IndexError and KeyError; TypeError and ValueError exceptions, the AssertError exception along with the assert keyword.
PCEP 4.4 Basics of Python Exception Handling
try-except, try-except Exception, ordering the except branches, propagating exceptions through function boundaries; delegating responsibility for handling exceptions.

Previous1.1.1 PCEP-30-02 Practice Test Compendium – Exam Block #4Next1.1.1.1 PCEP-30-02 Practice Test Compendium – Exam Block #4
Last updated