Which sentence about the property decorator is false?
A. The property decorator marks the method whose name will be used as the name of the instance attribute
B. The property decorator should be defined before the methods that are responsible for setting and deleting an encapsulated attribute
C. The property decorator should be defined after the method that is responsible for setting an encapsulated attribute.
D. The @property decorator designates a method which is responsible for returning an attribute value
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 2:
Analyze the following snippet and select the statement that best describes it.
A. The code is missing a placeholder for unnamed parameters.
B. The code is syntactically incorrect - the function should be defined as def f1 (*args, **kwargs)
C. The code is syntactically correct despite the fact that the names of the function parameters do not follow the naming convention
D. The *arg parameter holds a list of unnamed parameters
正解:D
解説: (Pass4Test メンバーにのみ表示されます)
質問 3:
What is a static method?
A. A method that works on the class itself
B. A method decorated with the @method trait
C. A method that requires no parameters referring to the class itself
D. A method that works on class objects that are instantiated
正解:C
解説: (Pass4Test メンバーにのみ表示されます)
質問 4:
Select the true statements about the following invocation:
(Select two answers.)
A. It addresses a service deployed at localhost (the host where the code is run).
B. It addresses a service located at the following address local.host.com.
C. It addresses a service listening at port 3000.
D. It addresses a service whose timeout is set to 3000 ms.
正解:A,C
解説: (Pass4Test メンバーにのみ表示されます)
質問 5:
Analyze the following snippet and choose the best statement that describes it.
A. varl is the name of a global variable
B. Excalibur is the value passed to an instance variable
C. self. name is the name of a class variable.
D. Weapon is the value passed to an instance variable
正解:B
解説: (Pass4Test メンバーにのみ表示されます)
Ling -
このPCPP-32-101問題集をミッチリ勉強することで、試験に一発で合格できました。しかも高得点で。
よくできた、お奨めの参考書です。