Select the true statements related to PEP 8 programming recommendations for code writing. (Select two answers:)
A. You should use the not ... is operator (e.g. if not spam is None:), rather than the is not operator (e.g.if spam is notNone:), to increase readability.
B. You should write code in a way that favors the CPython implementation over PyPy, Cython. and Jython.
C. You should make object type comparisons using the ismstanceQ method (e.g. if isinstance (obj, int) :) instead of comparing types directly (eg if type(obj) is type(i)).
D. You should not write string literals that rely on significant trailing whitespaces as they may be visually indistinguishable, and certain editors may trim them
正解:C,D
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Select the true statement related to PEP 257.
A. Attribute docstrings and Additional docstrings are two types of extra docstrings that can be extracted by software tools.
B. String literals that occur immediately after a simple assignment at the top level of a module are called complementary docstrings
C. String literals that occur immediately after another docstring are called attribute docstrings.
D. String Iiterals that occur in places other than the first statement in a module, function, or class definition can act as documentation They are recognized by the Python bytecode compiler and are accessible as runtime object attributes
正解:A
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
The following snippet represents one of the OOP pillars Which one is that?

A. Serialization
B. Inheritance
C. Encapsulation
D. Polymorphism
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
Select the true statements about sockets. (Select two answers)
A. A socket is a connection point that enables a two-way communication between programs running in a network.
B. A socket can be used to establish a communication endpoint for processes running on the same or different machines.
C. A socket is always the secure means by which computers on a network can safely communicate, without the risk of exposure to an attack
D. A socket is a connection point that enables a one-way communication only between remote processes
正解:A,B
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
Which one of the following methods allows you to debug an XML tree in the xml.etree ELementTree module?
A. debug
B. log
C. parse
D. dump
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
吉冈** -
今日はいい日ですね。ずっと悩んでいるPCPP-32-101試験に合格しました。貴社が提供するPCPP-32-101問題集はとても有効です。ありがとうございます。