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

What is the expected output of the following code?

print(float('1.3'))

Options :
Answer: C

Question 2

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 3

You need data which can act as a simple telephone director)'. You can obtain it with the following clauses (choose two relevant variants; assume that no other items have been created before)

Options :
Answer: C,D

Question 4

What is the expected output of the following code?

1. import random

2.  

3. random.seed(0)

4. x = random.choice([1, 2])

5. random.seed(0)

6. y = random.choice([1, 2])

7. print(x - y)

Options :
Answer: D

Question 5

What is the expected output of the following code?

1. class Test:

2.     def __init__(self, s='Welcome'):

3.         self.s = s

4.  

5.     def print(self):

6.         print(self.s)

7.  

8.  

9. x = Test()

10. x.print()

Options :
Answer: B

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.