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

Is there a way to check if a class is a subclass of another class?

Options :
Answer: A

Question 2

What is the expected output of the following code?

1. class Content:

2.     title = "None"

3.  

4.     def __init__(self, this):

5.         self.name = this + " than " + Content.title

6.  

7. text_1 = Content("Paper")

8. text_2 = Content("Article")

9. print(text_1.title == text_2.name)

Options :
Answer: C

Question 3

You are writing an application that uses the sqrt function.

The program must reference the function using the name squareRoot

You need to import the function.

Which code segment should you use?

Options :
Answer: C

Question 4

What is the expected output of the following code?

print(float('1.3'))

Options :
Answer: C

Question 5

Which of the following statements

would create an instance of the Computer class correctly?

1. class Computer:

2.     def __init__(self, ram):

3.         self.ram = ram

4.         self.type = 'server'

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.