[2022年08月31日] 最新Python Institute PCAP PCAP-31-03実際の無料試験解答 [Q43-Q65]

Share

[2022年08月31日] 最新Python Institute PCAP PCAP-31-03実際の無料試験解答

Python Institute PCAP PCAP-31-03問題集最新の練習テスト145独特な解答


Python Institute PCAP-31-03 認定試験の出題範囲:

トピック出題範囲
トピック 1
  • リスト内包表記:演算子の場合、リスト内包表記を使用
  • モジュール
  • パッケージを検索します。ネストされたパッケージとディレクトリツリー
トピック 2
  • アイデア:クラス、オブジェクト、プロパティ、メソッド、カプセル化、継承、文法とクラス、スーパークラス、サブクラス
トピック 3
  • 数学:ceil()、floor()、trunc()、factorial()、hypot()、sqrt(); ランダム:random()、seed()、choice()、sample()
  • indexing、slicing、immutability
トピック 4
  • プライベートコンポーネント(インスタンスとクラス)、名前マングリング
  • クロージャ:クロージャの意味、定義、および使用
トピック 5
  • I
  • O操作:I
  • Oモード、事前定義されたストリーム、ハンドル。テキスト
  • バイナリモード
  • 継承:単一、複数、isinstance()、オーバーライド、isおよびis演算子
トピック 6
  • 継承:単一、複数、isinstance()、オーバーライド、isではなくis演算子
トピック 7
  • 連結、乗算、比較(文字列と数値に対して)
  • ASCII、UNICODE、UTF-8、コードポイント、エスケープシーケンス
トピック 8
  • E as e、arg property
  • importvariantsを除くイベントクラス。ネストされたモジュールの高度な認定

 

質問 43
What is the expected out of the following code of the file named zero_length_existing_file is a zero-length file located inside the working directory?

  • A. an errno value corresponding to file not found
  • B. 0
  • C. 1
  • D. 2

正解: B

 

質問 44
The following class hierarchy is given. What is the expected out of the code?

  • A. AA
  • B. BB
  • C. CC
  • D. BC

正解: D

 

質問 45
If you want to transform a string into a list of words, what invocation would you use? (Select two answers) Expected output:

  • A. s.split ()
  • B. split (s)
  • C. split (s, ",")
  • D. s.split (",")

正解: A,D

 

質問 46
Which of the following expression evaluate to True? (Select two answers)

  • A. 'in not' in 'not'
  • B. 'in' in 'Thames'
  • C. 'in' in 'in'
  • D. 't' . upper ( ) in 'Thames'

正解: C,D

 

質問 47
Which of the following sentences are true? (Select two answers)

  • A. lists may not be stored inside tuples
  • B. tuples may not be stored inside tuples
  • C. lists may be stored inside lists
  • D. tuples may be stored inside lists

正解: C,D

 

質問 48
What is the expected behavior of the following code?

  • A. it outputs 2. 0
  • B. the code is erroneous and it will not execute
  • C. it outputs 0. 0
  • D. it outputs -2

正解: D

 

質問 49
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 pypack.module_a
  • B. import module_a
  • C. import module_a from pypack
  • D. from pypack import module_a

正解: A,D

 

質問 50
Which of the following literals reflect the value given as 3 4. 2 3 (select two answers)

  • A. 3423e-2
  • B. .3423e-2
  • C. 3423e2
  • D. .3423e2

正解: A,D

解説:

 

質問 51
What is the expected output of the following code?

  • A. False
  • B. True
  • C. 0
  • D. None

正解: B

 

質問 52
What is the expected behavior of the following code?

  • A. it outputs 6
  • B. it raises an exception
  • C. it outputs 321
  • D. It outputs 123

正解: A

 

質問 53
What is the expected output of the following code if existing_file is the name of a file located inside the working directory?

  • A. 2 3
  • B. 1 2
  • C. 1 2 3
  • D. 1 3

正解: D

 

質問 54
What is true about Python class constructors? (Choose two.)

  • A. the constructor must have at least one parameter
  • B. the constructor must return a value other than None
  • C. the constructor is a method named __init__
  • D. there can be more than one constructor in a Python class

正解: A,C

 

質問 55
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)

  • A. b ( ) == 4
  • B. a is not None
  • C. a ! = b
  • D. a ( ) == 4

正解: B,C

 

質問 56
What is the expected behavior of the following code?

  • A. it outputs 'None'
  • B. it outputs 0
  • C. it outputs 3
  • D. it raises an exception

正解: B

 

質問 57
What is the expected output of the following code?

  • A. a
  • B. b
  • C. c
  • D. an exception is raised

正解: C

 

質問 58
Which of the listed actions can be applied to the following tuple? (Select two answers)

  • A. tup [:]
  • B. tup [0]
  • C. tup.append (0)
  • D. del tup

正解: A,D

 

質問 59
What is true about the following snippet? (Select two answers)

  • A. the code will raise an unhandled exception
  • B. the string what a pity will be seen
  • C. thestring it's niceto see youwill be seen
  • D. the siring I feel fine 'will be seen

正解: B,D

 

質問 60
What is the expected behavior of the following code?

  • A. it outputs 2
  • B. it raises an exception
  • C. it outputs 0
  • D. it outputs 1

正解: B

 

質問 61
A method for passing the arguments used by the following snippet is called:

  • A. keyword
  • B. sequential
  • C. positional
  • D. named

正解: C

 

質問 62
Which of the following statements are true? (Select two answers)

  • A. instd, outstd, errstd are the names of pre-opened streams
  • B. if invoking open () fails, an exception is raised
  • C. open () requires a second argument
  • D. open () is a function which returns an object that represents a physical file

正解: B,D

 

質問 63
What is the expected behavior of the following code?

  • A. it outputs 6
  • B. it outputs 3
  • C. it raises an exception
  • D. it outputs 1

正解: A

 

質問 64
What is the expected behavior of the following code?

It will:

  • A. print 0
  • B. prints 3
  • C. cause a runtime exception
  • D. print an empty line

正解: C

 

質問 65
......

検証済みPCAP-31-03問題集と解答100%合格JPNTest:https://www.jpntest.com/shiken/PCAP-31-03-mondaishu

弊社を連絡する

我々は12時間以内ですべてのお問い合わせを答えます。

オンラインサポート時間:( UTC+9 ) 9:00-24:00
月曜日から土曜日まで

サポート:現在連絡