[2023年11月] 合格させるPython Institute PCAP-31-03テストエンジンPDFで完全版無料問題集
Certified Associate in Python Programming練習テスト2023年最新のPCAP-31-03ストレスなしで合格!
PCAP-31-03 試験の準備には、理論的な知識と実践的な経験の両方が必要です。候補者は、オンラインコース、教科書、練習問題など、幅広い学習資料を活用して認定試験の準備をすることができます。さらに、Python プロジェクトに取り組んだり、コーディングチャレンジに参加したりすることで実践的な経験を積むこともできます。
Python Institute PCAP-31-03(Pythonプログラミングの認定アソシエイト)認定試験は、Pythonプログラミングでキャリアを始めている個人のプログラミングスキルと知識を検証するように設計されています。認定試験では、Pythonコードを書き、テスト、デバッグする候補者の能力、およびPythonの構文、データ型、制御構造、および機能に関する知識をテストします。認定試験は世界中で認識されており、雇用主が従業員の習熟度と潜在的な新規採用を評価するベンチマークを提供します。
質問 # 48
Which of the following lines of code will work flawlessly when put independently inside the inc ( ) method in order to make the snippet's output equal to 3? (Select two answers)
- A. self.put (self.get ( ) + vaI)
- B. self.put (self.prop + vaI)
- C. self.put (get ( ) + vaI)
- D. put (self.prop + vaI)
正解:A、B
質問 # 49
Can a module run Eke regular code?
- A. it depends on the Python version
- B. yes, and it can differentiate its behavior between the regular launch and import
- C. yes, but it cannot differentiate its behavior between the regular launch and import
- D. no. it is not possible; a module can be imported, not run
正解:B
質問 # 50
Which one of the platform module functions should be used to determine the underlying platform name?
- A. platform.python_version()
- B. platform.processor()
- C. platform.uname ()
- D. platform.platform ()
正解:A
質問 # 51
Which of the following statements are true? (Select two answers)
- A. if invoking open () fails, the value None is returned
- B. instd, outstd, errstd are the names of pre-opened streams
- C. open () is a function which returns an int that represents a physical file handle
- D. the second open () argument is optional
正解:C、D
質問 # 52
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)
- A. class Class_3(A,C): pass
- B. class Class_4 (D, A) : pass
- C. class Class_1(C,D): pass
- D. class Class_2(B,D): pass
正解:B、C
質問 # 53
What is the expected output of the following code?
- A. True
- B. False
- C. None
- D. 0
正解:B
質問 # 54
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. import pypack.module_a
- D. from pypack import module_a
正解:C、D
質問 # 55
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
- B. 'key' in diet.keys()
- C. diet.exists('key')
- D. diet['key'] != None
正解:B、D
質問 # 56
What is the expected output of the following code?
- A. 0
- B. 1
- C. 2
- D. an exception is raised
正解:D
質問 # 57
Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers) import random v1 = random. random() v2 = random. random()
- A. random.choice{[1,2,3]) > 0
- B. len(random. sample([1,2,3],1)) > 2
- C. v1 == v2
- D. v1 < 1
正解:A、D
質問 # 58
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
- A. 'var' in Object.__diet__
- B. len(Object.__diet__) == 1
- C. 'var1 in Class, diet
- D. 'prop' in Class.__diet
正解:A、B
質問 # 59
Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)
- A. len(a)== len (b)
- B. b[0] - 1 == a[0]
- C. a[0] = b[0]
- D. a [0]-1 ==b [0]
正解:A、D
解説:
>>> print(len(a)==len(b))
True
>>> print(a[0]-1==b[0])
True
>>> print(a[0]==b[0])
False
>>> print(b[0]-1 == a[0])
False
質問 # 60
What can you deduce from the following statement0 (Select two answers) str = open('file.txt', "rt")
- A. str is a string read in from the file named file. txt
- B. a newlina character translation will be performed during the reads
- C. if file. txt does not exist, it will be created
- D. the opened file cannot be written with the use of the str variable
正解:B、D
質問 # 61
Files with the suffix .pyc contain:
- A. backups
- B. semi-compiled Python code
- C. temporary data
- D. Python 4 source code
正解:B
質問 # 62
Assuming that the V variable holds an integer value to 2, which of the following operators should be used instead of OPER to make the expression equal to 1?
V OPER 1 -
- A. >>>
- B. <<<
- C. <<
- D. >>
正解:D
質問 # 63
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. s.split ()
- D. split (s)
正解:A、C
質問 # 64
Which of the following statements are true? (Select two answers)
- A. ASCII is synonymous with UTF-8
- B. II in ASCII stands for Information Interchange
- C. a code point is a number assigned to a given character
- D. \e is an escape sequence used to mark the end of lines
正解:A、B
質問 # 65
What is the expected behavior of the following code?
- A. it outputs 1
- B. it raises an exception
- C. it outputs 6
- D. it outputs 3
正解:C
質問 # 66
The simplest possible class definition in Python can be expressed as:
- A. class X:
- B. class X:
pass - C. class X: {}
- D. class X:
return
正解:A
質問 # 67
Which of the following sentences are true? (Select two answers)
- A. lists may be stored inside lists
- B. lists may not be stored inside tuples
- C. tuples may be stored inside lists
- D. tuples may not be stored inside tuples
正解:A、C
質問 # 68
Which of the following expression evaluate to True? (Select two answers)
- A. ord("Z") - ord("z") -- ord("0")
- B. len('\'*) == 1
- C. chr(ordCA') + 1) == 'B'
- D. len("""
""") == o
正解:D
質問 # 69
The following expression
1+-2
is:
- A. equal to 2
- B. equal to 1
- C. invalid
- D. equal to -1
正解:D
解説:
質問 # 70
What is the expected behavior of the following code?
- A. it outputs 1
- B. it outputs 2
- C. the code is erroneous and it will not execute
- D. it outputs 3
正解:C
質問 # 71
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 3
- B. 1 2
- C. 1 3
- D. 2 3
正解:C
質問 # 72
The following class hierarchy is given. What is the expected output of the code?
- A. BB
- B. BC
- C. CC
- D. AA
正解:B
質問 # 73
......
オンライン試験練習テストと詳細な解説付き!:https://www.jpntest.com/shiken/PCAP-31-03-mondaishu