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

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

Questions 4

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

PCPP-32-101 Question 4

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

Buy Now
Questions 6

Which of the following methods allow you to load a configuration using ConfigParser? (Select two answers.)

Options:

A.

read

B.

read_dict

C.

read_conf

D.

read_str

Buy Now
Questions 7

The following snippet represents one of the OOP pillars Which one is that?

PCPP-32-101 Question 7

Options:

A.

Serialization

B.

Inheritance

C.

Encapsulation

D.

Polymorphism

Buy Now
Questions 8

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 9

What is true about a parameter named cls?

Options:

A.

It is usually used as a reference to a class instance.

B.

It is usually used as the first parameter of a static method.

C.

It is usually used as the first parameter of a class method.

D.

It is the name of a module that delivers an abstract method decorator.

Buy Now
Questions 10

What is ElementTree?

Options:

A.

A Python built-in module that contains functions used for creating HTML files.

B.

A Python library that contains an API used for parsing and manipulating JSON files.

C.

A Python library that contains functions and tools used for manipulating text files in GUI Programming.

D.

A Python built-in module that contains functions used for parsing and creating XML data.

Buy Now
Questions 11

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:

PCPP-32-101 Question 11

B)

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

PCPP-32-101 Question 11

C)

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

PCPP-32-101 Question 11

D)

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

PCPP-32-101 Question 11

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 12

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

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 14

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 15

Which of the following is not a widget property?

Options:

A.

width

B.

underline

C.

highlightthickness

D.

depth

Buy Now
Questions 16

What is a static method?

Options:

A.

A method that works on the class itself

B.

A method decorated with the @method trait

C.

A method that requires no parameters referring to the class itself

D.

A method that works on class objects that are instantiated

Buy Now
Questions 17

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

PCPP-32-101 Question 17

Options:

A.

The code is syntactically correct despite the fact that the names of the function parameters do not follow the naming convention

B.

The *arg parameter holds a list of unnamed parameters

C.

The code is missing a placeholder for unnamed parameters.

D.

The code is syntactically incorrect - the function should be defined as def f1 (*args, **kwargs) :

Buy Now
Questions 18

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.

Buy Now
Questions 19

Which of the following examples using line breaks and different indentation methods are compliant with PEP 8 recommendations? (Select two answers.)

Options:

A.

my_dict = {

"X": "180.A",

"Y": "206.P",

"Z": "12.C"

}

B.

spam = my_function(arg_one,

arg_two,

arg_three,

arg_four)

C.

foo = my_function

(arg_one, arg_two,

arg_three, arg_four

)

D.

my_dict = { "A" : "1", "B" : "2", "C" : "1" }

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: Jul 10, 2026
Questions: 69

PDF + Testing Engine

$134.99

Testing Engine

$99.99

PDF (Q&A)

$84.99