Pcap 31 03
Pcap 31 03
PCAP-31-03 Braindumps
PCAP-31-03 Real Questions
PCAP-31-03 Practice Test
PCAP-31-03 dumps free
AICPA
PCAP-31-03
Certified Associate in Python Programming - 2022
http://killexams.com/pass4sure/exam-detail/PCAP-31-03
Question: 38
What is the expected output of the following code?
A. 3
B. 5
C. 4
D. an exception is raised
Answer: A
Question: 39
def foo(x,y,z):
print{f00(lambda x: x % 2, 2, 1) )
A. 1
B. 0
C. -1
D. an exception is raised
Answer: C
Question: 40
Assuming that the following code has been executed successfully, selected the expression which evaluate to True
(Select two answers)
A. a ( ) == 4
B. a is not None
C. b ( ) == 4
D. a ! = b
Answer: A,B
Question: 41
What can you do if you don’t like a long package path like this one?
A. you can make an alias for the name using the alias keyword
B. nothing, you need to come to terms with it
C. you can shorten it to alpha. zeta and Python will find the proper connection
D. you can make an alias for the name using the as keyword
Answer: D
Explanation:
Reference: https://stackoverflow.com/questions/706595/can-you-define-aliases-for-imported-modules-in-python
Question: 42
Answer: B
Question: 43
The__bases__property contains:
A. base class locations (addr)
B. base class objects (class)
C. base class names (str)
D. base class ids (int)
Answer: C
Question: 44
A. 3
B. 1
C. 2
D. the code is erroneous
Answer: A
Question: 45
Answer: D
Explanation:
Reference: https://dev.to/ogwurujohnson/distinguishing-instance-variables-from-class-variables-in-python-81
Question: 46
A. it outputs 2
B. the code is erroneous and it will not execute
C. it outputs 1
D. it outputs 3
Answer: A
Question: 47
Assuming that the code below has been executed successfully, which of the following expressions evaluate to True?
(Select two answers)
A. ‘var’ in Object.__dict__
B. ‘prop’ in Class.__dict
C. len(Object.__diet__) == 1
D. ‘var1 in Class, dict
Answer: A,C
Question: 48
1+-2
is:
A. equal to 1
B. invalid
C. equal to 2
D. equal to -1
Answer: D
Question: 49
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
A. except Ex1 Ex2:
B. except (ex1, Ex2):
C. except Ex1, Ex2:
D. except Ex1+Ex2:
Answer: D
Question: 50
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 pypack.module_a
B. import module_a from pypack
C. import module_a
D. from pypack import module_a
Answer: A,D
For More exams visit https://killexams.com/vendors-exam-list