Exam PCAP-31-03 All QuestionsBrowse all questions from this exam
Question 1

What is true about Python packages? (Choose two.)

    Correct Answer: C, D

    A package in Python may contain an __init__.py file which is intended to initialize the package's state; however, the correct name for this file is __init__.py, not init.py. The __pycache__ folder is used to store semi-compiled (bytecode) Python modules, which are generated when the Python interpreter executes scripts for better performance. The sys.path variable is indeed a list of strings that specifies the directories the interpreter should search for modules being imported. Therefore, the correct statements are that __pycache__ is a folder that stores semi-compiled Python modules and that the sys.path variable is a list of strings.

Discussion
DKAT2023Options: CD

sorry, only C and D are corrects , for A the correct file name is _init_.py not init.py

DKAT2023Options: AC

A, C and D

Damon54

PASS Exam Today ! The contents and concepts are contained in these 40 and 141 questions PCAP , but there are several questions taken up 30% with modifications, so be careful, it is necessary to study!!! There are no syntax errors in the exam questions

Damon54

A C e D are correct !!

surendrapattipati

A. a code designed to initialize a package’s state should be placed inside a file named init.py