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

PCPP-32-101 PCPP1 – Certified Professional in Python Programming 1 Questions and Answers

Questions 4

Which of the following statements related to :memory: are true?

(Select two answers.)

Options:

A.

:memory: is a special name for loading a database from a file to the RAM.

B.

You can use :memory: to delete a specific database that resides in the RAM.

C.

You can use :memory: to establish a database connection.

D.

:memory: is a special name for creating a temporary database in the RAM.

Buy Now
Questions 5

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

Options:

A.

Class names should use the mixedCase naming style.

B.

Exception names should follow the function naming conventions.

C.

Modules should have short names entirely in lower-case.

D.

You should never use the characters “l” (lower-case letter “el”) and “O” (upper-case letter “oh”) as single character variable names.

Buy Now
Questions 6

Select the true statements about the json.-dumps () function. (Select two answers.)

Options:

A.

It returns a JSON string.

B.

It returns a Python entity.

C.

It takes a JSON string as its argument

D.

It takes Python data as its argument.

Buy Now
Questions 7

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
Questions 8

Which of the following will set the button text's font to 12 point italics Anal? (Select two answers)

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 9

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

Buy Now
Questions 10

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
Questions 11

The following JSON string:

{ 1 }

Options:

A.

is erroneous

B.

is an object

C.

is an array

D.

is an integer

Buy Now
Questions 12

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

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

Buy Now
Questions 13

What is the result of the following code?

import configparser

config = configparser.ConfigParser()

config['DEFAULT'] = {}

config['mysql'] = {}

config['postgresql'] = {}

config['redis'] = config['postgresql']

print(config.sections())

Options:

A.

['DEFAULT', 'mysql', 'postgresql', 'redis']

B.

['mysql', 'postgresql', 'redis']

C.

['DEFAULT', 'mysql', 'postgresql', 'postgresql']

D.

['mysql', 'postgresql', 'postgresql']

Buy Now
Questions 14

Look at the following code snippets and decide which ones follow PEP 8 recommendations for whitespaces in expressions and statements (Select two answers.)

A)

No whitespace immediately before the opening parenthesis that starts the list of arguments of a function call:

B)

A whitespace immediately before a comma, semicolon, and colon:

C)

No whitespace between a trailing comma and a following closing parenthesis:

D)

A whitespace immediately after the opening parenthesis that starts indexing or slicing:

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 15

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
Questions 16

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.

Buy Now
Questions 17

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

Options:

A.

It is an example of a decorator that accepts its own arguments.

B.

It is an example of decorator stacking.

C.

It is an example of a decorator that can trigger an infinite recursion.

D.

The function is erroneous.

Buy Now
Questions 18

What is true about the unbind () method? (Select two answers.)

Options:

A.

It is invoked from within the events object

B.

It is invoked from within a widget's object

C.

It needs a widget's object as an argument

D.

It needs the event name as an argument

Buy Now
Questions 19

Select the true statement about the socket. gaierror exception.

Options:

A.

It is raised when a timeout occurs on a socket.

B.

It is raised when a system function returns a system-related error.

C.

It is raised when an address-related error caused by the repr () function occurs.

D.

It is raised when an address-related error caused by the getaddrinfo () and getnameinfo () functions occurs.

Buy Now
Questions 20

What is true about the following snippet of code?

class Cat:

def __init__(self, weight, sex):

self.height = height

self.weight = weight

self.sex = sex

def say(self):

print('meows')

kitty = Cat(1, 'male')

kitty.say()

Options:

A.

The snippet will print: 1 male.

B.

The snippet will cause a NameError exception.

C.

The snippet will print: meows.

D.

The snippet will cause a ValueError exception.

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

PCPP-32-101 PDF

$25.5  $84.99
PCPP-32-101 Engine

PCPP-32-101 Testing Engine

$30  $99.99
PCPP-32-101 PDF + Engine

PCPP-32-101 PDF + Testing Engine

$40.5  $134.99