Exam Code: PCAP-31-03
Exam Questions: 704
Certified Associate in Python Programming
Updated: 21 Feb, 2026
Viewing Page : 1 - 71
Practicing : 1 - 5 of 704 Questions
Question 1

What is the expected output of the following code?

print(3 * 'abc' + 'xyz')

Options :
Answer: A

Question 2

What is the expected output of the following code?

print(float('1.3'))

Options :
Answer: C

Question 3

A built‑in function is a function which ...

Options :
Answer: D

Question 4

Consider the following code.

1. x = 42

2. y = 7

3. data = "I'm gonna make him an offer he can't refuse."

Which of the following expressions will evaluate to 19?

Options :
Answer: A

Question 5

What is the expected output of the following code?

1. def func(x):

2.     try:

3.         x = x / x

4.     except:

5.         print('a', end='')

6.     else:

7.         print('b', end='')

8.     finally:

9.         print('c', end='')

10.  

11.  

12. func(1)

13. func(0)

Options :
Answer: D

Viewing Page : 1 - 71
Practicing : 1 - 5 of 704 Questions

© Copyrights FreePDFQuestions 2026. All Rights Reserved

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