Exam Code: PCPP-32-101
Exam Questions: 564
Certified Professional in Python Programming 1
Updated: 02 Apr, 2026
Viewing Page : 1 - 57
Practicing : 1 - 5 of 564 Questions
Question 1

Complete the text below.

When a request requires additional parameters in the URI (Uniform Resource Identifier), they are typically appended to the URI as key-value pairs. Multiple parameters are separated from each other using the _____ symbol.

Options :
Answer: B

Question 2

Suppose you have the following request:
import requests

reply = requests.get('http://python.org:80')
How can you access the headers and content-type information?

Options :
Answer: D

Question 3

Decorators can be used... (select 2)

Options :
Answer: B,D

Question 4

Suppose you have the following Tkinter code snippet:

1. import tkinter as tk

2.  

3. def change_color(event):

4.     event.widget.configure(bg="red")

5.  

6. root = tk.Tk()

7. label = tk.Label(root, text="Click me!")

8. label.bind("", change_color)

9. label.pack()

10.  

11. root.mainloop()

What will happen when you click on the label?

Options :
Answer: A

Question 5

Python knows what to do when the interpreter spots the ** operator between two objects - it looks for the magic method responsible for the called function or operator in order to apply it to the operands (objects). In fact, the following snippet of code:
var1 = 2
var2 = 4
result = var1 ** var2
is translated to:

Options :
Answer: D

Viewing Page : 1 - 57
Practicing : 1 - 5 of 564 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.