Exam Code: PCPP1
Exam Questions: 564
Certified Professional in Python Programming 1
Updated: 05 Jan, 2026
Viewing Page : 1 - 57
Practicing : 1 - 5 of 564 Questions
Question 1

Consider the following code snippet using Tkinter:

from tkinter import Tk, Canvas

 root = Tk()

 canvas = Canvas(root, width=200, height=200)

canvas.pack()

 canvas.create_line(0, 0, 200, 200)

 root.mainloop()

What does this script do when executed?

Options :
Answer: D

Question 2

In Tkinter, which of the following methods is used to capture mouse click events on a widget?

Options :
Answer: B

Question 3

You are building a web scraping application using Python and the request module. You need to extract information from a webpage that requires authentication. Which feature of the request module would you use to handle this scenario?

Options :
Answer: C

Question 4

The reason for implementing abstract classes is that...

Options :
Answer: A

Question 5

Consider a class named Rectangle that represents a rectangle. Which magic methods can be implemented in the Rectangle class to allow addition + and subtraction - operations between two Rectangle objects?

Options :
Answer: B

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.