Python Institute PCPP-32-101

Page:    1 / 113   
Total 564 questions | Updated On: Apr 22, 2024
Question 1

Suppose you have the following Laptop class:

1. class Laptop:

2.     def __init__(self, ram=8):

3.         self.ram = ram

4.  

5.     def set(self, ram=4):

6.         self.ram += ram

7.         return self.ram

What is the expected output of the following code?

laptop = Laptop()

print(laptop.ram)

laptop.set()

print(laptop.ram)

laptop.set(8)

print(laptop.ram)


Answer: D
Question 2

An IPv4 address is a...


Answer: D
Question 3

Decorators can be used... (select 2)


Answer: B,D
Question 4

Select all true statements about Python docstrings with regard to PEP 257. (select 3)


Answer: A,B,D
Question 5

Why is the requests library important? (select 2)


Answer: A,B,D
Page:    1 / 113   
Total 564 questions | Updated On: Apr 22, 2024

Quickly grab our PCPP-32-101 product now and kickstart your exam preparation today!

Name: Certified Professional in Python Programming 1
Exam Code: PCPP-32-101
Certification: PCPP
Vendor: Python Institute
Total Questions: 564
Last Updated: Apr 22, 2024