Use Real PCAP-31-03 - 100% Cover Real Exam Questions [Sep-2021]
Dumps Brief Outline Of The PCAP-31-03 Exam - Exam4Docs
NEW QUESTION 33
A method for passing the arguments used by the following snippet is called:
- A. positional
- B. keyword
- C. named
- D. sequential
Answer: A
NEW QUESTION 34
Which of the listed actions can be applied to the following tuple? (Select two answers)
- A. del tup
- B. tup.append (0)
- C. tup [:]
- D. tup [0]
Answer: A,C
NEW QUESTION 35
Which of the following expressions evaluate to True? (Select two answers)
- A. 'True' not in 'False'
- B. str(1-1) in '0123456739'[:2]
- C. 'phd' in 'alpha'
- D. 'deb' not in 'abcde' [::-1]
Answer: A,D
NEW QUESTION 36
Which one of the platform module functions should be used to determine the underlying platform name?
- A. platform.processor()
- B. platform.platform ()
- C. platform.python_version()
- D. platform.uname ()
Answer: B
NEW QUESTION 37
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. split (s, ",")
- D. s.split ()
Answer: A,D
NEW QUESTION 38
What is the expected output of the following code?
- A. an exception is raised
- B. 0
- C. 1
- D. 2
Answer: B
NEW QUESTION 39
Which of the following expression evaluate to True? (Select two answers)
- A. len("""
""") == o - B. chr(ordCA') + 1) == 'B'
- C. ord("Z") - ord("z") -- ord("0")
- D. len('\'*) == 1
Answer: A
NEW QUESTION 40
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
Answer: B
NEW QUESTION 41
Assuming that the following inheritance set is in force, which of the following classes are declared properly?
(Select two answers)
- A. class Class_2(B,D): pass
- B. class Class_3(A,C): pass
- C. class Class_4 (D, A) : pass
- D. class Class_1(C,D): pass
Answer: C,D
NEW QUESTION 42
What is the expected behavior of the following code?
- A. it outputs 0
- B. it raises an exception
- C. it outputs 1
- D. it outputs 2
Answer: B
NEW QUESTION 43
What is the expected output of the following code?
- A. an exception is raised
- B. 0
- C. 1
- D. 2
Answer: B
NEW QUESTION 44
Which of the following snippets will execute without raising any unhandled exceptions? (Select answers) A)
B)
C)
D)
- A. Option C
- B. Option B
- C. Option A
- D. Option D
Answer: A,B,D
NEW QUESTION 45
The first parameter of each method:
- A. holds a reference to the currentlv processed object
- B. is always set to None
- C. is set by the first argument's value
- D. is set to a unique random value
Answer: A
Explanation:
The first argument of every class method, including init, is always a reference to the current instance of the class. By convention, this argument is always named self. In the init method, self refers to the newly created object; in other class methods, it refers to the instance whose method was called
NEW QUESTION 46
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. seven
- B. three
- C. zero
- D. five
Answer: A
Explanation:
NEW QUESTION 47
What is the expected behavior of the following code?
- A. the code is erroneous and it will not execute
- B. it outputs 3
- C. it outputs 1
- D. it outputs 2
Answer: B
NEW QUESTION 48
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 from pypack
- B. import module_a
- C. import pypack.module_a
- D. from pypack import module_a
Answer: C,D
NEW QUESTION 49
A compiler is a program designed to (select two answers)
- A. rearrange the source code to make it clearer
- B. check the source code in order to see if its correct
- C. execute the source code
- D. translate the source code into machine code
Answer: B,D
Explanation:
https://www.thoughtco.com/what-is-a-compiler-958322
NEW QUESTION 50
What is the expected behavior of the following code?
x - 3 % 1
y -1 if x > else 0
print (y)
- A. the code is erroneous and it will not execute
- B. it outputs 0
- C. it outputs 1
- D. it outputs -1
Answer: B
NEW QUESTION 51
What is the expected behavior of the following code?
- A. it outputs 1
- B. the code is erroneous and it will not execute
- C. it outputs 3
- D. it outputs 2
Answer: B
NEW QUESTION 52
What is the expected output of the following snippet?
- A. True True
- B. False False
- C. False True
- D. True False
Answer: A
NEW QUESTION 53
......
Certification Training for PCAP-31-03 Exam Dumps Test Engine: https://www.exam4docs.com/PCAP-31-03-study-questions.html
PCAP-31-03 Training & Certification Get Latest Python Institute PCAP : https://drive.google.com/open?id=1i5pI_xpi738S_mlP99Be5lbMoBTrB_DS

