[2022年04月] 合格させるPython Institute PCAP-31-03テストエンジンPDFで完全版無料問題集
Certified Associate in Python Programming練習テスト2022年最新のPCAP-31-03ストレスなしで合格!
Python Institute PCAP-31-03 認定試験の出題範囲:
| トピック | 出題範囲 |
|---|---|
| トピック 1 |
|
| トピック 2 |
|
| トピック 3 |
|
| トピック 4 |
|
| トピック 5 |
|
| トピック 6 |
|
| トピック 7 |
|
| トピック 8 |
|
質問 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