無料PCAP-31-03サンプル問題で100%カバー率のリアル試験問題(更新された131問あります)
今すぐダウンロード!リアルPython Institute PCAP-31-03試験問題集テストエンジン試験問題
質問 25
What is the expected behavior of the following code?
- A. it outputs 1
- B. it raises an exception
- C. it outputs 2
- D. it outputs 0
正解: D
質問 26
If you need a function that does nothing, what would you use instead of XXX? (Select two answers) def idler ( ):
XXX
- A. exit
- B. pass
- C. None
- D. return
正解: B,C
質問 27
Which of the following invocations are valid? (Select two answers)
- A. "python".index("th")
- B. "python".sort ()
- C. rfind("python","r")
- D. sorted("python")
正解: A,B
質問 28
What is the expected output of the following snippet?
- A. False True
- B. True True
- C. False False
- D. True False
正解: B
質問 29
How many elements will the list2 list contain after execution of the following snippet?
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]
- A. three
- B. seven
- C. zero
- D. five
正解: B
解説:
質問 30
What is the expected output of the following code?
- A. True
- B. False
- C. None
- D. 0
正解: A
質問 31
What is true about Object-Oriented Programming in Python? (Select two answers)
- A. each object of the same class can have a different set of methods
- B. if a real-life object can be described with a set of adjectives, they may reflect a Python object method
- C. a subclass is usually more specialized than its superclass
- D. the same class can be used many times to build a number of objects
正解: B,D
質問 32
What is the expected output of the following snippet?
- A. True upper
- B. False lower
- C. False upper
- D. True lower
正解: D
質問 33
A file name like this one below says mat: (select three answers)
services. cpython-36.pyc
- A. the file comes from the services . py source file
- B. the interpreter used to generate the file is version 3.6
- C. it is the 36th version of the file
- D. it has been produced by CPython
正解: A,B,D
質問 34
What is the expected output of the following code?
- A. 0
- B. 1
- C. 2
- D. an exception is raised
正解: D
質問 35
Which of the following statements are true? (Select two answers)
- A. UTF-8 is one of the ways of representing UNICODE code points.
- B. a code point is a point inside the code when execution stops immediately
- C. an escape sequence can be recognized by the # sign put in front of it.
- D. ASCII is the name of a character coding standard
正解: A,D
質問 36
Which of the following literals reflect the value given as 3 4. 2 3 (select two answers)
- A. 3423e2
- B. .3423e2
- C. .3423e-2
- D. 3423e-2
正解: B,D
解説:
質問 37
A compiler is a program designed to (select two answers)
- A. translate the source code into machine code
- B. rearrange the source code to make it clearer
- C. execute the source code
- D. check the source code in order to see if its correct
正解: A,D
解説:
https://www.thoughtco.com/what-is-a-compiler-958322
質問 38
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. 1 3
- C. 2 3
- D. 1 2 3
正解: B
質問 39
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. put self.store(1])
- C. self .put self.get () [-1])
- D. self put stire(1])
正解: A,D
質問 40
What is true about the following snippet? (Select two answers)
- A. thestring it's niceto see youwill be seen
- B. the code will raise an unhandled exception
- C. the string what a pity will be seen
- D. the siring I feel fine 'will be seen
正解: C,D
質問 41
Which of the following lambda function definitions are correct? (Select two answers)
- A. lambda : 3,1415
- B. lambda lambda: lambda * lambda
- C. lambda X : None
- D. lambda x : def fun(x): return x
正解: A,C
質問 42
What is a true about python class constructors? (Select two answers)
- A. the constructor must return a value other than None
- B. there can the more than one constructor in a Python class.
- C. the constructor must have at least one parameter
- D. the constructor is a method named_init_
正解: C,D
質問 43
You are going to read just one character from a stream called s. Which statement would you use?
- A. ch = s. input(1)
- B. ch = read(s, 1)
- C. ch = input(s, 1)
- D. ch = s. read(l)
正解: D
質問 44
Which of the following words can be used as a variable name? (Select two valid names)
- A. for
- B. true
- C. True
- D. For
正解: B,D
質問 45
What is true about Object-Oriented Programming in Python? (Select two answers)
- A. the arrows on a class diagram are always directed from a superclass towards its subclass
- B. an object is a recipe for a class
- C. encapsulation allows you to protect some data from uncontrolled access
- D. inheritance is the relation between a superclass and a subclass
正解: A,C
質問 46
What is the expected behavior of the following code?
- A. the code is erroneus and it will not execute
- B. it outputs [2, 4]
- C. it outputs [4, 2]
- D. it outputs [0, 1, 2, 3, 4]
正解: C
質問 47
......
Python Institute PCAP-31-03 認定試験の出題範囲:
トピック | 出題範囲 |
---|---|
トピック 1 |
|
トピック 2 |
|
トピック 3 |
|
トピック 4 |
|
トピック 5 |
|
トピック 6 |
|
トピック 7 |
|
トピック 8 |
|
トピック 9 |
|
最新PCAP-31-03テスト問題集を試そう!更新されたPython Institute試験が合格できます:https://www.goshiken.com/Python-Institute/PCAP-31-03-mondaishu.html
検証済み!PCAP-31-03問題集と解答でPCAP-31-03テストエンジン正確解答付き:https://drive.google.com/open?id=1zg7oUomsaTW0QBDxyk9rItSlKwlL1XP-