Manual
Manual
Python Programming
(Exam PCAP-31-03) – EXAM
SYLLABUS
PCAP-31-03 Exam
1
Section 1: Modules and Packages (12%)
Objectives covered by the block (6 exam items)
2
• raise, raise ex
• assert
• event classes
• except E as e
• the arg property
• self-defined exceptions
• defining and using self-defined exceptions
3
• instance vs. class variables: declarations and initializations
• the __dict__ property (objects vs. classes)
• private components (instances vs. classes)
• name mangling
4
PCAP-31-03 5.2 – Embed lambda functions into the code
• I/O modes
• predefined streams
• handles vs. streams
• text vs. binary modes