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:

Joanna
24 days ago
Ah, the age-old PEP 8 question. A and D are the ones to remember - unless you want your code to look like a python that's been hit by a camel.
upvoted 0 times
...
Page
27 days ago
A and D are the way to go. B is just plain wrong, and C... well, that's just asking for trouble. It's like naming your dog 'Cat'.
upvoted 0 times
Alishia
2 days ago
D) Constants should be written in all lower-case letters with words separated by underscores
upvoted 0 times
...
Laurel
20 days ago
A) Function and variable names should be lower-case with words separated by underscores.
upvoted 0 times
...
...
Ronna
1 months 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
2 months 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
Keneth
2 days ago
I agree, A and D are the correct answers.
upvoted 0 times
...
Amie
13 days ago
Yes, A and D are the true statements. B and C do not follow PEP 8 naming conventions.
upvoted 0 times
...
Helaine
19 days ago
I agree, A and D are the correct answers. B and C are definitely incorrect.
upvoted 0 times
...
Tamera
20 days ago
Yes, you're right. A and D are the true statements. B and C are not related to PEP 8 naming conventions.
upvoted 0 times
...
Corinne
22 days ago
I agree, A and D are the correct statements. B and C are definitely not part of PEP 8 naming conventions.
upvoted 0 times
...
...
Jaclyn
2 months 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
2 months ago
I think A and D are the true statements about PEP 8 naming conventions.
upvoted 0 times
...
Paris
2 months 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
2 months ago
I'm not sure about C, but I know A and D are correct.
upvoted 0 times
...
Lashanda
2 months 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
2 months ago
I agree with you, Theola. A and D follow PEP 8 naming conventions.
upvoted 0 times
...
Theola
2 months ago
I think A and D are true.
upvoted 0 times
...

Save Cancel