Certified Associate in Python Programming
Last Update Oct 15, 2025
Total Questions : 154
We are offering FREE PCAP-31-03 Python Institute exam questions. All you do is to just go and sign up. Give your details, prepare PCAP-31-03 free exam questions and then go for complete pool of Certified Associate in Python Programming test questions that will help you more.
What is the expected output of the following code if existing_file is the name of a file located inside the working directory?
Which of the following expressions evaluate to True? (Select two answers.)
A)
B)
C)
D)
If you want to transform a string into a list of words, what invocation would you use? (Select two answers)
Expected output:
An operator able to perform bitwise shifts is coded as (select two answers)
You are going to read 16 bytes from a binary file into a bytearray called data. Which lines would you use? (Select two answers)
What will the value of the i variable be when the following loop finishes its execution?
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers)
If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:
Which of the listed actions can be applied to the following tuple? (Select two answers)
Assuming that the following inheritance set is in force, which of the following classes are declared properly? (Select two answers)
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)
If you need a function that does nothing, what would you use instead of XXX? (Select two answers)
def idler ( ):
XXX
Which of the following lines of code will work flawlessly when put independently inside the inc ( ) method in order to make the snippet’s output equal to 3? (Select two answers)
Assuming that the following code has been executed successfully, selected the expression which evaluate to True (Select two answers)
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?
Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers)
Expected output:
1 2 3
Code:
You are going to read just one character from a stream called s. Which statement would you use?