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 14 hours ago Total Questions : 69

The PCPP1 – Certified Professional in Python Programming 1 content is now fully updated, with all current exam questions added 14 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 # 11

Which of the following types cannot be pickled?

A.

integers, floating-point numbers, complex numbers

B.

function and class definitions

C.

None, booleans

D.

strings, bytes, bytearrays

Question # 12

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

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.

Question # 13

What is true about type in the object-oriented programming sense?

A.

It is the bottommost type that any object can inherit from.

B.

It is a built-in method that allows enumeration of composite objects

C.

It is the topmost type that any class can inherit from

D.

It is an object used to instantiate a class

Question # 14

What does the term deserialization mean? Select the best answer.

A.

It is a process of creating Python objects based on sequences of bytes.

B.

It is a process of assigning unique identifiers to every newly created Python object

C.

It is another name for the data transmission process

D.

It is a process of converting the structure of an object into a stream of bytes

Question # 15

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

(Select two answers.)

A.

create_shape()

B.

create_line()

C.

create_triangle_shape()

D.

create_polygon()

Question # 16

Which of the following is not a widget property?

A.

width

B.

underline

C.

highlightthickness

D.

depth

Question # 17

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

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

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

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

Question # 20

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:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Go to page: