Welcome to ExamTopics
ExamTopics Logo
- Expert Verified, Online, Free.
exam questions

Exam PCAP-31-03 All Questions

View all questions & answers for the PCAP-31-03 exam

Exam PCAP-31-03 topic 1 question 1 discussion

Actual exam question from Python Institute's PCAP-31-03
Question #: 1
Topic #: 1
[All PCAP-31-03 Questions]

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

  • A. a code designed to initialize a package’s state should be placed inside a file named init.py
  • B. a package’s contents can be stored and distributed as an mp3 file
  • C. __pycache__ is a folder that stores semi-compiled Python modules
  • D. the sys.path variable is a list of strings
Show Suggested Answer Hide Answer
Suggested Answer: AC 🗳️

Comments

Chosen Answer:
This is a voting comment (?) , you can switch to a simple comment.
Switch to a voting comment New
thewoodsii81
1 week, 3 days ago
Selected Answer: AC
Besides the oversight of the naming issue for A this would be correct. D is wrong because sys.path is a variable and not a package
upvoted 1 times
...
SMMTechie
1 month, 3 weeks ago
C & D since init.py is not correct. _init_.py is the proper name. Google "init.py vs __init__.py" for confirmation.
upvoted 1 times
...
jarun2024
2 months, 3 weeks ago
ANS: A&D
upvoted 1 times
...
DKAT2023
4 months, 3 weeks ago
sorry, only C and D are corrects , for A the correct file name is _init_.py not init.py
upvoted 2 times
...
DKAT2023
4 months, 3 weeks ago
A, C and D
upvoted 1 times
...
Damon54
5 months, 2 weeks ago
A C e D are correct !!
upvoted 1 times
...
surendrapattipati
5 months, 4 weeks ago
A. a code designed to initialize a package’s state should be placed inside a file named init.py
upvoted 1 times
...
Community vote distribution
A (35%)
C (25%)
B (20%)
Other
Most Voted
A voting comment increases the vote count for the chosen answer by one.

Upvoting a comment with a selected answer will also increase the vote count towards that answer by one. So if you see a comment that you already agree with, you can upvote it instead of posting a new comment.

SaveCancel
Loading ...