Free Python Institute PCAP-31-03 Exam Questions

Try our Free Demo Practice Tests for Comprehensive PCAP-31-03 Exam Preparation

  • Python Institute PCAP-31-03 Exam Questions
  • Provided By: Python Institute
  • Exam: Certified Associate in Python Programming
  • Certification: PCAP
  • Total Questions: 704
  • Updated On: Apr 28, 2025
  • Rated: 4.9 |
  • Online Users: 1408
Page No. 1 of 141
Add To Cart
  • Question 1
    • 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?


      Answer: A
  • Question 2
    • 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()


      Answer: B
  • Question 3
    • 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)


      Answer: D
  • Question 4
    • Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)

      Answer: A,B
  • Question 5
    • What is the expected output of the following code?

      1. w = [7, 3, 23, 42]

      2. x = w[1:]

      3. y = w[1:]

      4. z = w

      5. y[0] = 10

      6. z[1] = 20

      7. print(w)


      Answer: D
PAGE: 1 - 141
Add To Cart

© Copyrights Dumpscity 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the Dumpscity.