Summer Sale Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70track

Free Python Institute PCPP-32-101 Practice Exam with Questions & Answers

Questions 1

What will be the content of the cars.xml file when you run the following code?

import xml.etree.ElementTree as ET

root = ET.Element('data')

car_1 = ET.SubElement(root, 'car', {'brand': 'Audi'})

car_2 = ET.SubElement(root, 'car', {'brand': 'Volkswagen'})

tree = ET.ElementTree(root)

tree.write('cars.xml', 'UTF-8', True)

Options:
A.

< data > < car brand="Audi" / > < car brand="Volkswagen" / > < /data >

B.

< ?xml version='1.0'? >

< data > < car brand="Audi" / > < car brand="Volkswagen" / > < /data >

C.

< ?xml version='1.0' encoding='UTF-8'? >

< data > < car brand="Audi" / > < car brand="Volkswagen" / > < /data >

D.

< ?xml? >

< data > < car brand="Audi" / > < car brand="Volkswagen" / > < /data >

Python Institute PCPP-32-101 Premium Access
Questions 2

If w is a correctly created main application window, which method would you use to foe both of the main window's dimensions?

Options:
A.

w. f ixshape ()

B.

w. f ixdim ()

C.

w. resizable ()

D.

w.makewindow ()

Questions 3

Select the true statements about PEP 8 recommendations related to using blank lines. (Select two answers.)

Options:
A.

You should not put any blank lines between groups of imports.

B.

You should surround top-level functions and class definitions with one blank line.

C.

You should surround top-level functions and class definitions with two blank lines.

D.

You should surround method definitions inside classes by a single blank line.

Questions 4

If purple can be obtained from mixing red and blue, which color codes represent the two ingredients? Select two answers)

Options:
A.

#FFFFFF

B.

#0000FF

C.

#FF0000

D.

#000000

Questions 5

Select the true statements about the connection-oriented and connectionless types of communication. (Select two answers.)

Options:
A.

In the context of TCP/IP networks, the communication side that initiates a connection is called the client, whereas the side that answers the client is called the server

B.

Connectionless communications are usually built on top of TCP

C.

Using walkie-talkies is an example of a connection-oriented communication

D.

A phone call is an example of a connection-oriented communication

Questions 6

What does the term deserialization mean? Select the best answer.

Options:
A.

It is a process of creating Python objects based on sequences of bytes.

B.

It is a process of assigning unique identifiers to every newly created Python object

C.

It is another name for the data transmission process

D.

It is a process of converting the structure of an object into a stream of bytes

Questions 7

Select the true statement about composition

Options:
A.

Composition extends a class's capabilities by adding new components and modifying the existing ones.

B.

Composition allows a class to be projected as a container of different classes

C.

Composition is a concept that promotes code reusability while inheritance promotes encapsulation.

D.

Composition is based on the has a relation: so it cannot be used together with inheritance.

Questions 8

What is true about the constructor’s argument, which sets the button’s title to a desired string?

Options:
A.

It is the second argument of the constructor.

B.

It is the third argument of the constructor.

C.

It is a keyword argument named title.

D.

It is a keyword argument named text.

Questions 9

What is the result of the following code?

PCPP-32-101 Question 9

What is the result of the following code?

Options:
A.

Nothing will be displayed

B.

Loading data...

C.

Debugging mode has been enabled

D.

Debugging mode has been enabled Loading data...

Questions 10

Analyze the following snippet and choose the best statement that describes it.

PCPP-32-101 Question 10

Options:
A.

self. name is the name of a class variable.

B.

varl is the name of a global variable

C.

Excalibur is the value passed to an instance variable

D.

Weapon is the value passed to an instance variable

Exam Code: PCPP-32-101
Certification Provider: Python Institute
Exam Name: PCPP1 – Certified Professional in Python Programming 1
Last Update: Aug 21, 2026
Questions: 69
PDF + Testing Engine
$164.99
$49.5
Testing Engine
$124.99
$37.5
PDF (Q&A)
$104.99
$31.5

Python Institute Free Exams

Python Institute Free Exams
Examstrack offers free Python Institute exam materials and practice tests to aid your Python Institute certification journey.