Please enable JavaScript to use CodeHS

Standards Mapping

for PCAP-31-03 Exam

21

Standards in this Framework

21

Standards Mapped

100%

Mapped to Course

Standard Lessons
PCAP-31-03 1.1
Import and use modules and packages: import variants: import, from import, import as, import *; advanced qualifying for nested modules; the dir() function; the sys.path variable.
  1. 2.1 Import Variants and Module Search
  2. 2.5 Modules and Packages Quiz
PCAP-31-03 1.2
Perform evaluations using the math module: functions: ceil(), floor(), trunc(), factorial(), hypot(), sqrt().
  1. 2.2 The Math and Random Modules on the Exam
  2. 2.5 Modules and Packages Quiz
PCAP-31-03 1.3
Generate random values using the random module: functions: random(), seed(), choice(), sample().
  1. 2.2 The Math and Random Modules on the Exam
  2. 2.5 Modules and Packages Quiz
PCAP-31-03 1.4
Discover host platform properties using the platform module: functions: platform(), machine(), processor(), system(), version(), python_implementation(), python_version_tuple().
  1. 2.3 The Platform Module
  2. 2.5 Modules and Packages Quiz
PCAP-31-03 1.5
Create and use user-defined modules and packages: idea and rationale; the __pycache__ directory; the __name__ variable; public and private variables; the __init__.py file; searching for/through modules/packages; nested packages vs. directory trees.
  1. 2.4 Building Your Own Modules and Packages
  2. 2.5 Modules and Packages Quiz
PCAP-31-03 2.1
Handle errors using Python-defined exceptions: except, except:-except; except:-else:, except (e1, e2); the hierarchy of exceptions; raise, raise ex; assert; event classes; except E as e; the arg property.
  1. 3.1 The Exception Hierarchy and Handler Variants
  2. 3.2 Raising Exceptions and Assertions
  3. 3.4 Exceptions Quiz
PCAP-31-03 2.2
Extend the Python exceptions hierarchy with self-defined exceptions: self-defined exceptions; defining and using self-defined exceptions.
  1. 3.3 Defining Your Own Exceptions
  2. 3.4 Exceptions Quiz
PCAP-31-03 3.1
Understand machine representation of characters: encoding standards: ASCII, UNICODE, UTF-8, code points, escape sequences.
  1. 4.1 Character Encodings
  2. 4.4 Strings Quiz
PCAP-31-03 3.2
Operate on strings: functions: ord(), chr(); indexing, slicing, immutability; iterating through strings, concatenating, multiplying, comparing (against strings and numbers); operators: in, not in.
  1. 4.1 Character Encodings
  2. 4.2 String Operations Deep Dive
  3. 4.4 Strings Quiz
PCAP-31-03 3.3
Employ built-in string methods: methods: .isxxx(), .join(), .split(), .sort(), sorted(), .index(), .find(), .rfind().
  1. 4.3 Essential String Methods
  2. 4.4 Strings Quiz
PCAP-31-03 4.1
Understand the Object-Oriented approach: ideas and notions: class, object, property, method, encapsulation, inheritance, superclass, subclass, identifying class components.
  1. 5.6 OOP Quiz
PCAP-31-03 4.2
Employ class and object properties: instance vs. class variables: declarations and initializations; the __dict__ property (objects vs. classes); private components (instances vs. classes); name mangling.
  1. 5.1 Instance and Class Variables
  2. 5.2 Private Attributes and Name Mangling
  3. 5.6 OOP Quiz
PCAP-31-03 4.3
Equip a class with methods: declaring and using methods; the self parameter.
  1. 5.6 OOP Quiz
PCAP-31-03 4.4
Discover the class structure: introspection and the hasattr() function (objects vs. classes); properties: __name__, __module__, __bases__.
  1. 5.3 Introspection
  2. 5.6 OOP Quiz
PCAP-31-03 4.5
Build a class hierarchy using inheritance: single and multiple inheritance; the isinstance() function; overriding; operators: not is, is; polymorphism; overriding the __str__() method; diamonds.
  1. 5.4 Multiple Inheritance and the MRO
  2. 5.5 Polymorphism and __str__
  3. 5.6 OOP Quiz
PCAP-31-03 4.6
Construct and initialize objects: declaring and invoking constructors.
  1. 5.1 Instance and Class Variables
PCAP-31-03 5.1
Build complex lists using list comprehension: list comprehensions: the if operator, nested comprehensions.
  1. 6.1 List Comprehensions
  2. 6.6 Miscellaneous Quiz
PCAP-31-03 5.2
Embed lambda functions into the code: lambdas: defining and using lambdas; self-defined functions taking lambdas as arguments; functions: map(), filter().
  1. 6.2 map(), filter(), and Lambda Arguments
  2. 6.6 Miscellaneous Quiz
PCAP-31-03 5.3
Define and use closures: closures: meaning and rationale; defining and using closures.
  1. 6.3 Closures
  2. 6.6 Miscellaneous Quiz
PCAP-31-03 5.4
Understand basic Input/Output terminology: I/O modes; predefined streams; handles vs. streams; text vs. binary modes.
  1. 6.5 File Input and Output
  2. 6.6 Miscellaneous Quiz
PCAP-31-03 5.5
Perform Input/Output operations: the open() function; the errno variable and its values; functions: close(), .read(), .write(), .readline(), readlines(); using bytearray as input/output buffer.
  1. 6.5 File Input and Output
  2. 6.6 Miscellaneous Quiz