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

A property of the event object called widget is in fact:

Options:
A.

the reference to an object that stores a widget causing an event.

B.

the name of an object of a widget causing an event.

C.

the run() function.

D.

the name of a widget causing an event.

Python Institute PCPP-32-101 Premium Access
Questions 2

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

Questions 3

Select the true statements about the sqirte3 module. (Select two answers.)

Options:
A.

The sqlite3 module provides an interface compliant with the DB-API 2.0.

B.

The special name memory is used to create a database in RAM.

C.

The sqhte3 module does not support transactions.

D.

The fetchall method returns an empty list when no rows are available

Questions 4

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 5

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

Questions 6

Select the correct statements about the csv module.

(Select two answers.)

Options:
A.

The DictReader method always gets the header from the first line in the file.

B.

A reader object maps each row to a list of strings.

C.

It is possible to create a DictWriter object without specifying a header.

D.

A DictReader object maps each row to a dict.

Questions 7

Look at the following examples of comments and docstrings in Python. Select the ones that are useful and compliant with PEP 8 recommendations. (Select the two best answers.)

Options:
A.

def net_expense(q, price):

"""Return the total cost of items before tax."""

return q * price

B.

n = n - 1 # Decrement n by 1.

C.

val = val + 1.15 # Compensate for diminished value.

D.

def total_cost(q):

'''Takes the q argument and multiplies it by 1.15.'''

return q * 1.15

Questions 8

Which of the following statements regarding the __traceback__ attribute are true?

(Select two answers.)

Options:
A.

The attribute is a special method delivered by the traceback module to retrieve a full list of strings describing the traceback.

B.

The attribute can be easily handled by the traceback.format_tb() method.

C.

The attribute is owned by every exception object.

D.

The attribute is owned only by the exception objects residing in an exception chain.

Questions 9

Select a log that matches the following format:

'%(name)s[%(levelname)s][%(asctime)s] :%(message)s'

Options:
A.

root[CRITICAL][2019-10-19 18:21:35] :Invalid argument

B.

root:CRITICAL:2019-10-19 18:21:35,407:Invalid argument

C.

root[CRITICAL][2019-10-19 18:21:35,407] :Invalid argument

D.

root:CRITICAL:2019-10-19 18:21:35:Invalid argument

Questions 10

Select the true statements about the json.loads() function.

(Select two answers.)

Options:
A.

It takes Python data as its argument.

B.

It returns a JSON string.

C.

It takes a JSON string as its argument.

D.

It returns a Python entity.

Exam Code: PCPP-32-101
Certification Provider: Python Institute
Exam Name: PCPP1 – Certified Professional in Python Programming 1
Last Update: Jul 6, 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.