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:

Christiane
1 days ago
I think A and D are the true statements about PEP 8 naming conventions.
upvoted 0 times
...
Paris
1 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
3 days ago
I'm not sure about C, but I know A and D are correct.
upvoted 0 times
...
Lashanda
4 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
4 days ago
I agree with you, Theola. A and D follow PEP 8 naming conventions.
upvoted 0 times
...
Theola
5 days ago
I think A and D are true.
upvoted 0 times
...

Save Cancel