Labour Day Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 70percent

Python Institute PCPP-32-101 PCPP1 - Certified Professional in Python Programming 1 Exam Practice Test

Demo: 6 questions
Total 45 questions

PCPP1 - Certified Professional in Python Programming 1 Questions and Answers

Question 1

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

Options:

A.

The code is syntactically correct despite the fact that the names of the function parameters do not follow the naming convention

B.

The *arg parameter holds a list of unnamed parameters

C.

The code is missing a placeholder for unnamed parameters.

D.

The code is syntactically incorrect - the function should be defined as def f1 (*args, **kwargs) :

Question 2

What is the result of the following code?

What is the result of the following code?

Options:

A.

Nothing will be displayed

B.

Loading data...

C.

Debugging mode has been enabled

D.

Debugging mode has been enabled Loading data...

Question 3

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

Options:

A.

"accept:" and "cancel''

B.

l and o

C.

"yes" and "no"

D.

True and False

Question 4

Select the true statement about the socket. gaierror exception.

Options:

A.

It is raised when a timeout occurs on a socket.

B.

It is raised when a system function returns a system-related error.

C.

It is raised when an address-related error caused by the repr () function occurs.

D.

It is raised when an address-related error caused by the getaddrinfo () and getnameinfo () functions occurs.

Question 5

What is true about the unbind_all () method?

(Select two answers.)

Options:

A.

It can be invoked from any widget

B.

It can be invoked from the main window widget only

C.

It is parameterless

D.

It causes all the widgets to disappear

Question 6

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.

Demo: 6 questions
Total 45 questions