Each question has:Question code in this format: Question code X-YY at the beginning of each question.Explanation for correct and for wrong answers.Web Link for more reading if needed.Python Code that I strongly advise you to try by yourself to better understand the concept.For any concerns, please get in touch with us via Q&A and provide the Question code X-YY which is at the beginning of each question.PCAP-31-03 Exam SyllabusSECTION 1: Module and Packages (12%)Objectives covered by the block (6 exam items)PCAP-31-03 1.1 – Import and use modules and packagesimport variants: import, from import, import as, import *advanced qualifying for nested modulesthe dir() functionthe sys.path variablePCAP-31-03 1.2 – Perform evaluations using the math modulefunctions: ceil(), floor(), trunc(), factorial(), hypot(), sqrt()PCAP-31-03 1.3 – Generate random values using the random modulefunctions: random(), seed(), choice(), sample()PCAP-31-03 1.4 – Discover host platform properties using the platform modulefunctions: platform(), machine(), processor(), system(), version(), python_implementation(), python_version_tuple()PCAP-31-03 1.5 – Create and use user-defined modules and packagesidea and rationale;the __pycache__ directorythe __name__ variablepublic and private variablesthe __init__. py filesearching for/through modules/packagesnested packages vs. directory tree
What you'll learn
import and use modules and packages
perform evaluations using the math module
generate random values using the random module
discover host platform properties using the platform module