Select the true statements related to PEP 8 naming conventions. (Select two answers.)
Suggested Answer: A, D
Get Premium PCPP-32-101 Questions
as Interactive Web-Based Practice Test or PDF
Real Exam Format
Detailed Explanations
Instant Access
Get Your Practice Test
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.
39 comments · newest first
CH
Chauncey
1 year ago
I thought modules were supposed to be all lowercase too!
VE
Vernell
1 year ago
D sounds off, aren't constants usually in ALL_CAPS?
WI
Willodean
1 year ago
Wait, C is wrong, it should be lowercase!
CH
Chantell
1 year ago
I agree, B is a must for clarity.
AI
Aileen
1 year ago
A is definitely true!
RU
Rutha
1 year ago
I’m pretty sure constants should be in all caps, not lower-case, so I’m confused about that option.
LO
Lourdes
1 year ago
I practiced a question like this, and I know modules should not be in CameICase; I think they should be all lower-case.
CA
Carey
1 year ago
I think self and cls are correct for instance and class methods, but I can't recall if that's part of naming conventions.
OC
Ocie
1 year ago
I remember that function and variable names should definitely be lower-case with underscores, but I'm not sure about the constants part.
CO
Corinne
1 year ago
Hmm, I'm a little unsure about some of these options. I better review the PEP 8 guidelines quickly to make sure I select the correct answers.
ST
Stephanie
1 year ago
Okay, let me think this through. I know PEP 8 has some specific guidelines for naming, but I want to make sure I get this right. I'll read each option closely.
WI
Willard
1 year ago
Hmm, this one looks straightforward. I'm pretty confident I know the PEP 8 naming conventions, so I'll just go through the options carefully.
KR
Kris
1 year ago
Alright, time to put my PEP 8 knowledge to the test. I'm feeling good about this one, but I'll double-check my work before submitting.
TR
Trinidad
1 year ago
Hmm, I'm a bit confused by the different options. I'll need to make sure I understand the requirements fully before deciding on the best approach.
NA
Narcisa
1 year ago
Hmm, I'm a bit confused by the options here. I'll need to review the details more closely to understand the differences between the approaches.
JU
Julio
1 year ago
I believe the 'grant List, CreateTable, CreateInstance...' command is essential since it assigns permissions. So, my guess is that 'flush privileges;' is the correct answer for this question.
JO
Joanna
2 years 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.
EL
Elvera
1 year ago
D) Constants should be written in all lower-case letters with words separated by underscores
TO
Tonja
1 year ago
A) Function and variable names should be lower-case with words separated by underscores.
PA
Page
2 years 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'.
AL
Alishia
1 year ago
D) Constants should be written in all lower-case letters with words separated by underscores
LA
Laurel
2 years ago
A) Function and variable names should be lower-case with words separated by underscores.
RO
Ronna
2 years 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.
SH
Sharika
2 years 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.
BR
Brandee
1 year ago
Constants should definitely be in all lower-case with underscores.
DE
Deonna
1 year ago
CameICase is definitely not a thing in PEP 8 naming conventions.
AR
Arlette
1 year ago
Yeah, B is definitely wrong. It's not about instance methods.
KE
Keneth
1 year ago
I agree, A and D are the correct answers.
AM
Amie
2 years ago
Yes, A and D are the true statements. B and C do not follow PEP 8 naming conventions.
HE
Helaine
2 years ago
I agree, A and D are the correct answers. B and C are definitely incorrect.
TA
Tamera
2 years ago
Yes, you're right. A and D are the true statements. B and C are not related to PEP 8 naming conventions.
CO
Corinne
2 years ago
I agree, A and D are the correct statements. B and C are definitely not part of PEP 8 naming conventions.
JA
Jaclyn
2 years ago
I agree with you, Christiane. A and D make sense because they follow the convention of using underscores for separating words.
CH
Christiane
2 years ago
I think A and D are the true statements about PEP 8 naming conventions.
PA
Paris
2 years ago
I got this one! A and D are the true statements. C is just silly, who would name a module in CamelCase?
FL
Florinda
2 years ago
I'm not sure about C, but I know A and D are correct.
LA
Lashanda
2 years 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.
HO
Horace
2 years ago
I agree with you, Theola. A and D follow PEP 8 naming conventions.
TH
Theola
2 years ago
I think A and D are true.