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

PCPP1 PCPP-32-101 Python Institute Study Notes

Page: 4 / 5
Total 69 questions

PCPP1 – Certified Professional in Python Programming 1 Questions and Answers

Question 13

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

Question 14

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

Options:

A.

Function and variable names should be lower-case with words separated by underscores.

B.

You should always use self as the first argument to instance methods, and cls as the first argument to class methods.

C.

Modules should have short names written in CameICase.

D.

Constants should be written in all lower-case letters with words separated by underscores

Question 15

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

Options:

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 16

Select the true statements about the json.-dumps () function. (Select two answers.)

Options:

A.

It returns a JSON string.

B.

It returns a Python entity.

C.

It takes a JSON string as its argument

D.

It takes Python data as its argument.

Page: 4 / 5
Total 69 questions