Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Python Institute Exam PCPP-32-101 Topic 2 Question 17 Discussion

Actual exam question for Python Institute's PCPP-32-101 exam
Question #: 17
Topic #: 2
[All PCPP-32-101 Questions]

Select the true statements related to PEP 8 naming conventions. (Select two answers.)

Show Suggested Answer Hide Answer
Suggested Answer: A, D

ConfigParser is a built-in library in Python that allows you to read and write configuration files. The read method is used to read the configuration file which can be in any of the supported file formats, such as INI, YAML, and JSON. The read_dict method is used to read the configuration from a Python dictionary. The read_conf and read_str options are not valid methods in the ConfigParser module.

Therefore, the correct options to load a configuration using ConfigParser are A. read and D. read_string.


Contribute your Thoughts:

Ronna
9 days ago
I'm not sure about C, but I think A and D are correct. Using lower-case letters and underscores for constants is a common practice.
upvoted 0 times
...
Sharika
10 days ago
Hmm, I think A and D are the right answers. B is definitely wrong, and C sounds like something a JavaScript developer would do.
upvoted 0 times
...
Jaclyn
10 days ago
I agree with you, Christiane. A and D make sense because they follow the convention of using underscores for separating words.
upvoted 0 times
...
Christiane
12 days ago
I think A and D are the true statements about PEP 8 naming conventions.
upvoted 0 times
...
Paris
12 days ago
I got this one! A and D are the true statements. C is just silly, who would name a module in CamelCase?
upvoted 0 times
...
Florinda
14 days ago
I'm not sure about C, but I know A and D are correct.
upvoted 0 times
...
Lashanda
15 days ago
A and D seem correct to me. I remember reading about those conventions in PEP 8. B is wrong - it should be self and cls, not the other way around.
upvoted 0 times
...
Horace
15 days ago
I agree with you, Theola. A and D follow PEP 8 naming conventions.
upvoted 0 times
...
Theola
16 days ago
I think A and D are true.
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77