Certified Associate in Python Programming: Python Institute PCAP-31-03 Dumps Available Here at
Certified Associate in Python Programming: Python Institute PCAP-31-03 Dumps Available Here at
Enrolling now you will get access to 110 questions in a unique set of
PCAP-31-03 dumps
Question 1
A property that stores information about a given class's super-classes is named:
Options:
A. _upper_
B. _bases_
C. _ancestors_
D. _super_
Answer: B
Question 2
Which of the following lambda function definitions are correct? (Select two answers)
Options:
A. lambda X : None
B. lambda : 3,1415
Answer: A, B
Question 3
The following class hierarchy is given. What is the expected output of the code?
https://www.certification-questions.com
Python Institute PCAP-31-03
Options:
A. BB
B. CC
C. AA
D. BC
Answer: D
Question 4
Assuming that String is six or more letters long, the following slice
String[1:-2]
is shorter than the original string by:
Options:
A. four chars
https://www.certification-questions.com
Python Institute PCAP-31-03
B. three chars
C. one char
D. two chars
Answer: B
Question 5
Assuming that the V variable holds an integer value to 2, which of the following operators
should be used instead of OPER to make the expression equal to 1?
V OPER 1 -
Options:
A. <<<
B. >>>
C. >>
D. <<
Answer: C
Question 6
What is the expected output of the following snippet?
Options:
A. abc
https://www.certification-questions.com
Python Institute PCAP-31-03
C. ABC
D. 123
Answer: B
Explanation:
Question 7
The following class definition is given. We want the show () method to invoke the get ()
method, and then output the value the get () method returns. Which of the invocations should be
used instead of XXX?
Options:
A. print (get(self))
B. print (self.get())
https://www.certification-questions.com
Python Institute PCAP-31-03
C. print (get())
Answer: B
Question 8
A compiler is a program designed to (select two answers)
Options:
Answer: B, D
Explanation:
houghtco.com/what-is-a-compiler-958322
Explanation:
Question 9
A Python module named pymod.py contains a variable named pyvar.
Which of the following snippets will let you access the variable? (Select two answers)
Options:
Answer: A, D
Question 10
What is true about Python packages? (Select two answers)
Options:
https://www.certification-questions.com
Python Institute PCAP-31-03
D. a code designed to initialize a package's state should be placed inside a file named init.py
Answer: B, D
https://www.certification-questions.com