[2022年04月] 合格 Python Institute PCAP-31-03 テストエンジンpdf - 完全版無料問題集 [Q43-Q61]

Share

[2022年04月] 合格させるPython Institute PCAP-31-03テストエンジンPDFで完全版無料問題集

Certified Associate in Python Programming練習テスト2022年最新のPCAP-31-03ストレスなしで合格!


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

トピック出題範囲
トピック 1
  • Instrospection: hasattr() (objects vs classes), __name__, __module__, __bases__ properties
トピック 2
  • Instance vs class variables: declaring, initializing
  • self-defined exceptions, defining and using
トピック 3
  • Private components (instance vs classes), name mangling
  • closures: meaning, defining, and using closures
トピック 4
  • Math: ceil(), floor(), trunc(), factorial(), hypot(), sqrt(); random: random(), seed(), choice(), sample()
  • indexing, slicing, immutability
トピック 5
  • Inheritance: single, multiple, isinstance(), overriding, not is and is operators
トピック 6
  • List comprehension: if operator, using list comprehensions
  • searching for modules
  • packages; nested packages vs directory tree
トピック 7
  • I
  • O Operations: I
  • O modes, predefined streams, handles; text
  • binary modes
  • inheritance: single, multiple, isinstance(), overriding, not is and is operators
トピック 8
  • Concatenating, multiplying, comparing (against strings and numbers)
  • ASCII, UNICODE, UTF-8, codepoints, escape sequences

 

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

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

正解: A

 

質問 44
What is the expected output of the following snippet?

  • A. False upper
  • B. True lower
  • C. False lower
  • D. True upper

正解: B

 

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

  • A. it outputs <class ' IndexError' >
  • B. it outputs list assignment index out of range
  • C. the code is erroneous and it will not execute
  • D. it outputs error

正解: B

 

質問 46
The simplest possible class definition in Python can be expressed as:

  • A. class X:
    pass
  • B. class X:
    return
  • C. class X: {}
  • D. class X:

正解: D

 

質問 47
What would you use instead of XXX if you want to check whether a certain ' key' exists in a dictionary called diet? (Select two answers) II if XXX:
print("Key exists")

  • A. 'key' in diet.keys()
  • B. 'key' in diet
  • C. diet['key'] != None
  • D. diet.exists('key')

正解: A,C

 

質問 48
Which of the following words can be used as a variable name? (Select two valid names)

  • A. True
  • B. for
  • C. For
  • D. true

正解: C,D

 

質問 49
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. 0
  • B. 1
  • C. 2
  • D. an errno value corresponding to file not found

正解: A

 

質問 50
With regards to the directory structure below, select the proper forms of the directives in order to import module_c. (Select two answers)

  • A. import pypack.upper.lower.module_c
  • B. import upper.lower.module_c
  • C. from pypack.upper.lower import module_c
  • D. import upper.module_c

正解: A,C

 

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

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

正解: A

 

質問 52
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1] ? (Select two answers)

  • A. self .put (self.store[1])
  • B. self .put self.get () [-1])
  • C. put self.store(1])
  • D. self put stire(1])

正解: A,D

 

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

  • A. it outputs nothing
  • B. it raises an exception
  • C. it outputs True
  • D. it outputs False

正解: C

 

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

  • A. 0
  • B. 1
  • C. an exception is raised
  • D. 2

正解: D

 

質問 55
Which of the following lambda definitions are correct? (Select two answers)

  • A. lambda (x, y = x\\y x%y
  • B. lanbda x, y; return x\\y - x%y
  • C. lambda x, y; x\\y - x%y
  • D. lambda x, y; (x, y)

正解: C,D

 

質問 56
What is a true about python class constructors? (Select two answers)

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

正解: A,C

 

質問 57
Which of the following lines of code will work flawlessly when put independently inside the add_new () method in order to make the snippet's output equal to [0, 1, 1] ? (Select two answers)

  • A. self .put (self.store[1])
  • B. self .put self.get () [-1])
  • C. put self.store(1])
  • D. self put stire(1])

正解: A,D

 

質問 58
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers)

  • A. a is not None
  • B. b( ) > 2
  • C. a() > 2
  • D. a is b

正解: A,B,C

 

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

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

正解: C

 

質問 60
What is the expected output of the following code if there is no file named non existing_file inside the working directory?

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

正解: B

 

質問 61
......

時間限定!今すぐ無料アクセスPCAP-31-03練習試験用問題:https://drive.google.com/open?id=1vudPDkggEMeahxXpfTgYNuexfAZCCZ9b

オンライン試験練習テストと詳細な解説付き!:https://jp.fast2test.com/PCAP-31-03-premium-file.html


弊社を連絡する

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

我々の働いている時間: ( GMT 0:00-15:00 )
月曜日から土曜日まで

サポート: 現在連絡 

English Deutsch 繁体中文 한국어