Certified Associate in Python Programming 試験
最新更新時間: 2026/09/21
【秋学習応援セール|10月限定キャンペーン】:PCAP-31-02 最新真題を買う時、日本語版と英語版両方を同時に獲得できます。
実際の問題集を練習し、試験のポイントを了解し、テストに申し込むするかどうかを決めることができます。
さらに試験準備時間の35%を節約するには、PCAP-31-02 問題集を使用してください。
Question No : 1
If you need a function that does nothing, what would you use instead of XXX? (Select two answers)
![]()
正解:
Explanation:
Reference: https://www.pythoncentral.io/python-null-equivalent-none/
Question No : 2
What is the expected behavior of the following code?

It will:
正解:
Explanation:

Question No : 3
What is the expected behavior of the following snippet?

It will:
正解:
Explanation:

Question No : 4
What is the expected output of the following code?

正解:
Explanation:

Question No : 5
What is the expected output of the following code?

正解:
Explanation:

Question No : 6
What can you do if you don’t like a long package path like this one?
![]()
正解:
Explanation:
Reference: https://stackoverflow.com/questions/706595/can-you-define-aliases-for-imported-modules-inpython
Question No : 7
What is the expected behavior of the following snippet?

It will:
正解:
Explanation:

Question No : 8
A file name like this one below says that: (Select three answers)
services, cpython 36.pyc
正解:
Question No : 9
Select the valid fun () invocations: (Select two answers)
![]()
正解:
Question No : 10
Can a module run like regular code?
正解:
Explanation:
You write a module (a .py file) where it can be executed directly. Alternatively, it can also be imported and used in another module. By doing the main check, you can have that code only execute when you want to run the module as a program and not have it execute when someone just wants to import your module and call your functions themselves.
Reference: https://developer.rhino3d.com/guides/rhinopython/python-remote-local-module/
Question No : 11
You need data which can act as a simple telephone directory. You can obtain it with the following clauses (Select two relevant variants; assume that no other items have been created before)
正解:
Question No : 12
What would you used instead of XXX if you want to check weather a certain ‘key’ exists in a dictionary called dict? (Select two answers)
![]()
正解:
Explanation:
Reference: https://thispointer.com/python-how-to-check-if-a-key-exists-in-dictionary/
Question No : 13
How many elements will the list2 list contain after execution of the following snippet?
![]()
正解:
Explanation:

Question No : 14
What is the expected output of the following snippet?

正解:
Explanation:

Question No : 15
What is the expected output of the following snippet?

正解:
Explanation:
