Certified Associate in Python Programming 試験
最終更新日: 2026/10/16 収録内容確認済 | PDF問題集: 全 40 問収録
【仕様案内】:PCAP-31-02 問題集(PDF版)は日本語版&英語版の2言語セットに対応しております(日本語版が準備中の科目は英語版を即時ダウンロードのうえ、日本語版は準備完了次第ご登録メールへ自動送付いたします)。
本ページでは問題集の無料サンプル問題を公開しており、出題形式や現在の理解度を確認することができます。
全40問を収録したPDF版は、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:
