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

What is true about updating already installed Python packages?

Options :
Answer: D

Question 2

What can you do to indicate that a module entity should be treated as private?

Choose two.

Options :
Answer: A,D

Question 3

Which of the following messages will appear on the screen when the code is run?

1. class Failure(Exception):

2.     def __init__(self, message):

3.         self.message = message

4.  

5.     def __str__(self):

6.         return "out of order"

7.  

8.  

9. try:

10.     print("turn on")

11.     raise Failure("crash")

12. except Failure as problem:

13.     print(problem)

14. else:

15.     print("success")

(Select two answers.)

Options :
Answer: C,D

Question 4

Which of the following functions immediately terminates a program?

Options :
Answer: B

Question 5

Which of the following lines contain valid Python code?

(Select two answers.)

Options :
Answer: B,D

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

© Copyrights FreePDFQuestions 2025. 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.