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

Exact2Pass Menu

PCPP1 – Certified Professional in Python Programming 1

Last Update 11 hours ago Total Questions : 69

The PCPP1 – Certified Professional in Python Programming 1 content is now fully updated, with all current exam questions added 11 hours ago. Deciding to include PCPP-32-101 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our PCPP-32-101 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these PCPP-32-101 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any PCPP1 – Certified Professional in Python Programming 1 practice test comfortably within the allotted time.

Question # 1

In the JSON processing context, the term serialization:

A.

names a process in which Python data is turned into a JSON string.

B.

names a process in which a JSON string is turned into Python data.

C.

refers to nothing, because there is no such thing as JSON serialization.

D.

names a process in which a JSON string is remodeled and transformed into a new JSON string

Question # 2

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

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Question # 3

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

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.

Question # 4

Which of the following values can be returned by the messagebox. askquestion () method?

A.

"accept:" and "cancel''

B.

l and o

C.

"yes" and "no"

D.

True and False

Question # 5

Select the true statement related to PEP 257.

A.

String literals that occur immediately after another docstring are called attribute docstrings.

B.

Attribute docstrings and Additional docstrings are two types of extra docstrings that can be extracted by software tools.

C.

String Iiterals that occur in places other than the first statement in a module, function, or class definition can act as documentation They are recognized by the Python bytecode compiler and are accessible as runtime object attributes

D.

String literals that occur immediately after a simple assignment at the top level of a module are called complementary docstrings

Question # 6

Select the true statement about the___name___attribute.

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.

Question # 7

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

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

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

A.

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

B.

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

C.

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

D.

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

Question # 9

Select the true statements about sockets. (Select two answers)

A.

A socket is a connection point that enables a two-way communication between programs running in a network.

B.

A socket is always the secure means by which computers on a network can safely communicate, without the risk of exposure to an attack

C.

A socket is a connection point that enables a one-way communication only between remote processes

D.

A socket can be used to establish a communication endpoint for processes running on the same or different machines.

Question # 10

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

A.

The = operator

B.

The isinstanceO function

C.

The id () function

D.

The is operator

Go to page: