PCAP-31-03事前に試験練習テストで使おう(最新145問題)
有効なPCAP-31-03試験解答PDF一年無料更新
認定プログラムには、Pythonプログラミングの認定アソシエイト(PCAP)とPythonプログラミングの認定プロフェッショナル(PCPP)の2つのレベルがあります。PCAPレベルはエントリーレベルの認定であり、PCPPレベルはPythonプログラミングの深い理解を持つ上級ユーザー向けに設計されています。PCAP-31-03試験は、PCAP認定プログラムの最新バージョンであり、最新のPythonプログラミング言語に基づいています。
質問 # 59
What is the expected behavior of the following code?
- A. it outputs 2
- B. it raises an exception
- C. it outputs 5
- D. it outputs 3
正解:C
質問 # 60
What is true about Python class constructors? (Select two answers)
- A. super-class constructor is invoked implicitly during constructor execution
- B. the constructor's first parameter identifies an object currently being created
- C. the constructor cannot use the default values of the parameters
- D. the constructor can be invoked directly under strictly defined circumstances
正解:B、D
質問 # 61
With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)
- A. import module_a
- B. import module_a from pypack
- C. from pypack import module_a
- D. import pypack.module_a
正解:C、D
質問 # 62
Which of the following snippets will execute without raising any unhandled exceptions? (Select answers) A)
B)
C)
D)
- A. Option D
- B. Option C
- C. Option B
- D. Option A
正解:A、B、C
質問 # 63
What is the expected output of the following code?
- A. 0
- B. 1
- C. 2
- D. an exception is raised
正解:A
質問 # 64
What is the expected behavior of the following code?
- A. it outputs 2
- B. the code is erroneous and it will not execute
- C. it outputs 3
- D. it outputs 1
正解:B
質問 # 65
What is the expected behavior of the following code?
- A. it outputs False
- B. it outputs True
- C. it raises an exception
- D. it outputs nothing
正解:B
質問 # 66
What is true about Python class constructors? (Choose two.)
- A. the constructor must have at least one parameter
- B. there can be more than one constructor in a Python class
- C. the constructor must return a value other than None
- D. the constructor is a method named __init__
正解:A、D
質問 # 67
What is the expected behavior of the following code?
It will:
- A. print an empty line
- B. prints 3
- C. cause a runtime exception
- D. print 0
正解:C
質問 # 68
What is the expected behavior of the following code?
- A. it outputs error
- B. it outputs list assignment index out of range
- C. it outputs <class ' IndexError' >
- D. the code is erroneous and it will not execute
正解:B
質問 # 69
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers) Def f (x, y); Nom, denom = x, y def g ( ) ; Return nom / denom A = f (1, 2) B = f (3, 4)
- A. b ( ) == 4
- B. a is not None
- C. a ( ) == 4
- D. a ! = b
正解:B、D
質問 # 70
What is true about Object-Oriented Programming in Python? (Select two answers)
- A. the arrows on a class diagram are always directed from a superclass towards its subclass
- B. inheritance is the relation between a superclass and a subclass
- C. encapsulation allows you to protect some data from uncontrolled access
- D. an object is a recipe for a class
正解:A、C
質問 # 71
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)
- A. b () ==4
- B. a is not None
- C. a () == 4
- D. a ! =b
正解:C、D
質問 # 72
What is the expected behavior of the following code?
- A. it outputs [2, 4]
- B. it outputs [0, 1, 2, 3, 4]
- C. the code is erroneus and it will not execute
- D. it outputs [4, 2]
正解:D
質問 # 73
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
- A. except Ex1, Ex2:
- B. except Ex1 Ex2:
- C. except Ex1+Ex2:
- D. except (ex1, Ex2):
正解:C
質問 # 74
Which of the following lambda definitions are correct? (Select two answers)
- A. lambda x, y; x\\y - x%y
- B. lambda (x, y = x\\y x%y
- C. lanbda x, y; return x\\y - x%y
- D. lambda x, y; (x, y)
正解:A、D
質問 # 75
......
PCAP-31-03試験は、Pythonプログラミングに関連する広範なトピックをカバーする包括的なテストです。これらのトピックには、基本的なプログラミングの概念、データ型、制御構造、関数、モジュール、入出力操作、オブジェクト指向プログラミングが含まれます。
Certified Associate in Python Programming無料更新認定サンプル問題:https://jp.fast2test.com/PCAP-31-03-premium-file.html
試験本場前にトレンドなPython Institute PCAP-31-03のPDF問題集を試そう:https://drive.google.com/open?id=1vudPDkggEMeahxXpfTgYNuexfAZCCZ9b