PCAP-31-03練習試験テスト最新問題2024年01月
PCAP-31-03試験を一発合格保証問題集!
質問 # 63
A method for passing the arguments used by the following snippet is called:
- A. keyword
- B. sequential
- C. named
- D. positional
正解:D
質問 # 64
A variable stored separately in every object is called:
- A. an instance variable
- B. an object variable
- C. a class variable
- D. there are no such variables, all variables are shared among objects
正解:D
質問 # 65
What is the expected behavior of the following code?
- A. it outputs [2, 4]
- B. it outputs [4, 2]
- C. it outputs [0, 1, 2, 3, 4]
- D. the code is erroneus and it will not execute
正解:B
質問 # 66
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 upper.module_c
- B. import upper.lower.module_c
- C. import pypack.upper.lower.module_c
- D. from pypack.upper.lower import module_c
正解:C、D
質問 # 67
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. put (self.prop + vaI)
- B. self.put (self.get ( ) + vaI)
- C. self.put (self.prop + vaI)
- D. self.put (get ( ) + vaI)
正解:B、C
質問 # 68
What is true about the following snippet? (Select two answers)
- A. the string what a pity will be seen
- B. the siring I feel fine 'will be seen
- C. the string it's nice to see you will be seen
- D. the code will raise an unhandled exception
正解:A、B
質問 # 69
What is the expected behavior of the following code?
- A. it outputs 1
- B. it outputs 3
- C. the code is erroneous and it will not execute
- D. it outputs 2
正解:B
質問 # 70
What is the expected behavior of the following code?
- A. it outputs 1
- B. it outputs 0
- C. it raises an exception
- D. it outputs 2
正解:C
質問 # 71
What is the expected behavior of the following code?
- A. it outputs 1
- B. it outputs 0
- C. it raises an exception
- D. it outputs 2
正解:C
質問 # 72
Which of the following statements are true? (Select two answers)
- A. ASCII is the name of a character coding standard
- B. an escape sequence can be recognized by the # sign put in front of it.
- C. UTF-8 is one of the ways of representing UNICODE code points.
- D. a code point is a point inside the code when execution stops immediately
正解:A、C
質問 # 73
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers) string = 'SKY' (:: -1) string = string (-1)
- A. string (0) == 'Y'
- B. string is None
- C. string (0) == string (-1
- D. len (string) == 1
正解:A、D
質問 # 74
What is true about Object-Oriented Programming in Python? (Select two answers)
- A. if a real-life object can be described with a set of adjectives, they may reflect a Python object method
- B. a subclass is usually more specialized than its superclass
- C. the same class can be used many times to build a number of objects
- D. each object of the same class can have a different set of methods
正解:B、C
質問 # 75
Which of the following statements are true? (Select two answers)
- A. II in ASCII stands for Information Interchange
- B. \e is an escape sequence used to mark the end of lines
- C. a code point is a number assigned to a given character
- D. ASCII is synonymous with UTF-8
正解:C、D
質問 # 76
What is the expected behavior of the following code?
- A. It outputs False
- B. It outputs nothing
- C. It raises an exception
- D. It outputs True
正解:A
質問 # 77
What is true about the following snippet? (Select two answers)
- A. the string what a pity will be seen
- B. the string it's nice to see you will be seen
- C. the string I feel fine 'will be seen
- D. the code will raise an unhandled exception
正解:A、C
質問 # 78
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)
- A. 'prop' in Class.__diet
- B. len(Object.__diet__) == 1
- C. 'var' in Object.__diet__
- D. 'var1 in Class, diet
正解:B
質問 # 79
What is true about Python packages? (Select two answers)
- A. the__name__variable content determines the way in which the module was run
- B. a package can be stored as a tree of sub-directories/sub-folders
- C. hashbang is the name of a built-in Python function
- D. __pycache__is the name of a built-in variable
正解:B、D
質問 # 80
Assuming that the following inheritance set is in force, which of the following classes are declared properly?
(Select two answers)
- A. class Class_1(C,D): pass
- B. class Class_2(B,D): pass
- C. class Class_3(A,C): pass
- D. class Class_4 (D, A) : pass
正解:C、D
質問 # 81
What is the expected output of the following snippet?
- A. 0
- B. 1
- C. 2
- D. the code is erroneous
正解:D
解説:
質問 # 82
......
Python Institute PCAP無料認定試験材料はGoShikenが提供された145問題:https://www.goshiken.com/Python-Institute/PCAP-31-03-mondaishu.html
PCAP-31-03問題集完全版問題試験学習ガイド:https://drive.google.com/open?id=1zg7oUomsaTW0QBDxyk9rItSlKwlL1XP-