Increase your chances of passing the Python Institute PCAP-31-03 exam questions on your first try. Practice with our free online PCAP-31-03 exam mock test designed to help you prepare effectively and confidently.
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, 21 ? (Select two answers)

What is the expected output of the following code?
1. list1 = ['Peter', 'Paul', 'Mary', 'Jane']
2. list2 = ['Peter', 'Paul', 'Mary', 'Jane']
3.
4. print(list1 is not list2)
5. print(list1 != list2)
6.
7. list1 = list2
8.
9. print(list1 is not list2)
10. print(list1 != list2)
Consider the following code.
1. start = input('How old were you at the time of joining?')
2. now = input('How old are you today?')
Which of the following codes will print the right output?
Consider the following Python code:
1. distance = 1876.23
2. amount = +42E7
3. country = 'Italy'
What are the types of the variables distance, amount and country?

© Copyrights FreeMockExams 2026. All Rights Reserved
We use cookies to ensure that we give you the best experience on our website (FreeMockExams). If you continue without changing your settings, we'll assume that you are happy to receive all cookies on the FreeMockExams.