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

PCPP-32-101 Exam Dumps - Python Institute PCPP1 Questions and Answers

Question # 4

What is a___traceback___?

(Select two answers )

Options:

A.

An attribute owned by every exception object

B.

A special method delivered by the traceback module to retrieve a full list of strings describing the traceback

C.

An attribute that is added to every object when the traceback module is imported

D.

An attribute that holds interesting information that is particularly useful when the programmer wants to store exception details in other objects

Buy Now
Question # 5

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 >

Buy Now
Question # 6

Which function or operator should you use to obtain the answer True or False to the question: "Do two variables refer to the same object?"

Options:

A.

The = operator

B.

The isinstanceO function

C.

The id () function

D.

The is operator

Buy Now
Question # 7

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 ()

Buy Now
Question # 8

A socket object is usually created by which one of the following invocations?

Options:

A.

socket. socket (socket_domain, socket_type)

B.

socket = socket. socket (socket_number)

C.

socket = socket. socket (socket_domain, socket_type, server_address)

D.

socket = socket.socket(server address)

Buy Now
Question # 9

Which methods can be invoked in order to draw a triangle?

(Select two answers.)

Options:

A.

create_shape()

B.

create_line()

C.

create_triangle_shape()

D.

create_polygon()

Buy Now
Question # 10

Select the true statements related to PEP 8 naming conventions. (Select two answers.)

Options:

A.

Function and variable names should be lower-case with words separated by underscores.

B.

You should always use self as the first argument to instance methods, and cls as the first argument to class methods.

C.

Modules should have short names written in CameICase.

D.

Constants should be written in all lower-case letters with words separated by underscores

Buy Now
Question # 11

What is true about the unbind_all () method?

(Select two answers.)

Options:

A.

It can be invoked from any widget

B.

It can be invoked from the main window widget only

C.

It is parameterless

D.

It causes all the widgets to disappear

Buy Now
Question # 12

Select the true statement about the___name___attribute.

Options:

A.

___name___is a special attribute, which is inherent for both classes and instances, and it contains information about the class to

which a class instance belongs.

B.

___name is a special attribute, which is inherent for both classes and instances, and it contains a dictionary of object attributes.

C.

__name___is a special attribute, which is inherent for classes and it contains information about the class to which a class instance

belongs.

D.

__name___is a special attribute, which is inherent for classes, and it contains the name of a class.

Buy Now
Question # 13

What will happen if the mam window is too small to fit all its widgets?

Options:

A.

Some widgets may be invisible

B.

The window will be expanded.

C.

An exception will be raised.

D.

The widgets will be scaled down to fit the window's size.

Buy Now
Exam Code: PCPP-32-101
Exam Name: PCPP1 – Certified Professional in Python Programming 1
Last Update: Jul 17, 2026
Questions: 69
PCPP-32-101 pdf

PCPP-32-101 PDF

$25.5  $84.99
PCPP-32-101 Engine

PCPP-32-101 Testing Engine

$28.5  $94.99
PCPP-32-101 PDF + Engine

PCPP-32-101 PDF + Testing Engine

$40.5  $134.99