PCAP – Pythonプログラミング認定アソシエイト認定は、Pythonへのオブジェクト指向プログラミングアプローチに焦点を当てており、OOPの基本、モジュールとパッケージの基本、例外処理など、プログラミングのより高度な側面に精通していることを示しています。 OOPのメカニズム、文字列の高度な操作、リスト内包表記、ラムダ、ジェネレーター、クロージャ、およびファイル処理。
PCAP – Pythonプログラミング認定の認定アソシエイト(試験PCAP-31-0x)は、Python言語で中級レベルのコーディングタスクを実行する候補者の能力を測定する、専門的でハイステークスの資格です。これには、設計、開発、デバッグの能力が含まれます。マルチモジュールPythonプログラムを実行、リファクタリングし、オブジェクト指向アプローチで利用可能な基本的な概念と手法を使用して、OOPカテゴリの実際の問題の分析とモデリングに関連するスキルと知識を測定します。
PCAP認定は、個人が次の概念に精通していることを示しています:モジュール、パッケージ、PIP、文字エンコード、文字列と文字列の処理、ジェネレーター、イテレーター、クロージャー、ファイル、ファイルストリーム、ファイル処理、例外階層、例外クラスおよびオブジェクト、選択された標準ライブラリモジュールの操作、およびオブジェクト指向プログラミング(OOP)アプローチの基礎。
What is true about Object-Oriented Programming in Python? (Select two answers)
A.if a real-life object can be described with a set of adjectives, they may reflect a Python object method
B.the same class can be used many times to build a number of objects
C.each object of the same class can have a different set of methods
D.a subclass is usually more specialized than its superclass
Answer: B, D
A Python module named pymod, py contains a function named pyfun ( ).
Which of the following snippets will let you invoke the function? (Select two answers)
A.From pymod import ‘
Pymod.pyfun ( )
B.Import pymod
Pymod. Pyfun ( )
C.Import pyfun from pymod
Pyfun ( )
D.From pymod import pyfun
Pyfun ( )
Answer: B, D
What can you deduce from the following statement? (Select two answers)
str = open('file.txt', "rt")
A.str is a string read in from the file named file.txt
B.a newlina character translation will be performed during the reads
C.if file. txt does not exist, it will be created
D.the opened file cannot be written with the use of the str variable
Answer: A, D
Which of the following sentences are true? (Select two answers)
A.lists may not be stored inside tuples
B.tuples may be stored inside lists
C.tuples may not be stored inside tuples
D.lists may be stored inside lists
Answer: B, D
What is true about Python class constructors? (Choose two.)
A.there can be more than one constructor in a Python class
B.the constructor must return a value other than None
C.the constructor is a method named __init__
D.the constructor must have at least one parameter
Answer: C, D