Summer Sale Limited Time 75% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple75

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

Exam PCPP-32-101 Premium Access

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

Practice at least 50% of the questions to maximize your chances of passing.
Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions
Questions # 11:

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

Questions # 12:

Select the true statements about the json.loads() function.

(Select two answers.)

Options:

A.

It takes Python data as its argument.

B.

It returns a JSON string.

C.

It takes a JSON string as its argument.

D.

It returns a Python entity.

Questions # 13:

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

Questions # 14:

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

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

Question # 15

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

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

A)

Question # 16

B)

Question # 16

C)

Question # 16

D)

Question # 16

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions # 17:

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

Questions # 18:

Which of the following statements regarding the __traceback__ attribute are true?

(Select two answers.)

Options:

A.

The attribute is a special method delivered by the traceback module to retrieve a full list of strings describing the traceback.

B.

The attribute can be easily handled by the traceback.format_tb() method.

C.

The attribute is owned by every exception object.

D.

The attribute is owned only by the exception objects residing in an exception chain.

Questions # 19:

Which sentence about the ©property decorator is false?

Options:

A.

The ©property decorator should be defined after the method that is responsible for setting an encapsulated attribute.

B.

The @property decorator designates a method which is responsible for returning an attribute value

C.

The ©property decorator marks the method whose name will be used as the name of the instance attribute

D.

The ©property decorator should be defined before the methods that are responsible for setting and deleting an encapsulated attribute

Questions # 20:

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

Options:

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

Viewing page 2 out of 2 pages
Viewing questions 11-20 out of questions