Practice your Certified Associate in Python Programming certification test with free PCAP-31-03 exam cram and take control of your certification preparation. At FreeExamCram, you can practice online for free using real PCAP-31-03 exam dumps, verified questions, and expert-designed free online practice tests. Moreover our Python Institute PCAP-31-03 exam cram backed by our confidence-boosting refund guarantee.
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?
What is the expected output of the following code?
data = [261, 321]
try:
print(data[-3])
except Exception as exception:
print(exception.args)
else:
print("('success',)")
You create a function to calculate the power of a number by using Python.
You need to ensure that the function is documented with comments
You create the following code. Line numbers are included for reference only.
1. 01 # The calc_power function calculates exponents
2. 02 # x is the base
3. 03 # y is the exponent
4. 04 # The value of x raised to the y power is returned
5. 05 def calc_power(x, y):
6. 06 comment = "# Return the value"
7. 07 return x ** y # raise x to the y power
Which of the following statements are true?
Choose two.
Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

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