Professional Documents
Culture Documents
Python Institute PCAP-31-03 Certified Associate in Python Programming Exam Practice Test
Python Institute PCAP-31-03 Certified Associate in Python Programming Exam Practice Test
Python Institute PCAP-31-03 Certified Associate in Python Programming Exam Practice Test
Home (https://www.certshero.com/)
› Python Institute (https://www.certshero.com/python-institute) › PCAP-31-03
Question 1
A)
B)
C)
D)
A Option A
B Option B
C Option C
D Option D
Leave a message
https://www.certshero.com/python-institute/pcap-31-03/practice-test 1/6
4/4/24, 5:38 PM Python Institute PCAP-31-03 Exam Practice Test Instant Access - No Installation Required
Reveal Answer
Answer : C, D
Next Question
Question 2
With regards to the directory structure below, select the proper forms of the
directives in order to import module_c. (Select two answers)
Reveal Answer
Answer : A, B
Next Question
Leave a message
https://www.certshero.com/python-institute/pcap-31-03/practice-test 2/6
4/4/24, 5:38 PM Python Institute PCAP-31-03 Exam Practice Test Instant Access - No Installation Required
Question 3
What is the expected output of the following code if the file named
existing_text_file is a non-zero length text file located inside the working
directory?
Reveal Answer
Answer : B
Next Question
Question 4
https://www.certshero.com/python-institute/pcap-31-03/practice-test 3/6
4/4/24, 5:38 PM Python Institute PCAP-31-03 Exam Practice Test Instant Access - No Installation Required
Reveal Answer
Answer : A, C
Next Question
Question 5
It will
A print 2 1
B print 1 2
C cause a runtime exception
D print <generator object f at (some hex digits)>
Reveal Answer
Answer : B
https://www.certshero.com/python-institute/pcap-31-03/practice-test 4/6
4/4/24, 5:38 PM Python Institute PCAP-31-03 Exam Practice Test Instant Access - No Installation Required
Question 6
It will:
A print 0
B cause a runtime exception
C prints 3
D print an empty line
Reveal Answer
Answer : B
Next Question
Question 7
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:
Leave a message
https://www.certshero.com/python-institute/pcap-31-03/practice-test 5/6
4/4/24, 5:38 PM Python Institute PCAP-31-03 Exam Practice Test Instant Access - No Installation Required
Reveal Answer
Answer : D
Next Question
Page: 1 / 14
Previous Page Next Page
Total 144 questions
Leave a message
https://www.certshero.com/python-institute/pcap-31-03/practice-test 6/6