Summer Certification Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Python Institute PCPP1 PCPP-32-101 Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam PCPP-32-101 Premium Access

View all detail and faqs for the PCPP-32-101 exam


700 Students Passed

84% Average Score

98% Same Questions
Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
Questions # 21:

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.

Questions # 22:

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

A)

Question # 22

B)

Question # 22

C)

Question # 22

D)

Question # 22

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions # 23:

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

Question # 23

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.

Questions # 24:

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.

Questions # 25:

Select the true statement about composition

Options:

A.

Composition extends a class's capabilities by adding new components and modifying the existing ones.

B.

Composition allows a class to be projected as a container of different classes

C.

Composition is a concept that promotes code reusability while inheritance promotes encapsulation.

D.

Composition is based on the has a relation: so it cannot be used together with inheritance.

Questions # 26:

Select the true statement about the___name___attribute.

Options:

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.

Questions # 27:

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.

Questions # 28:

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

(Select two answers.)

Options:

A.

create_shape()

B.

create_line()

C.

create_triangle_shape()

D.

create_polygon()

Questions # 29:

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 # 30:

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

Viewing page 3 out of 3 pages
Viewing questions 21-30 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.