Labour Day Special 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: exams65

PCPP1 - Certified Professional in Python Programming 1 Question and Answers

PCPP1 - Certified Professional in Python Programming 1

Last Update Apr 22, 2024
Total Questions : 45

We are offering FREE PCPP-32-101 Python Institute exam questions. All you do is to just go and sign up. Give your details, prepare PCPP-32-101 free exam questions and then go for complete pool of PCPP1 - Certified Professional in Python Programming 1 test questions that will help you more.

PCPP-32-101 pdf

PCPP-32-101 PDF

$35  $99.99
PCPP-32-101 Engine

PCPP-32-101 Testing Engine

$42  $119.99
PCPP-32-101 PDF + Engine

PCPP-32-101 PDF + Testing Engine

$56  $159.99
Questions 1

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

Discussion 0
Questions 2

Which of the following will set the button text's font to 12 point italics Anal? (Select two answers)

A)

B)

C)

D)

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Questions 3

What is a static method?

Options:

A.  

A method that works on the class itself

B.  

A method decorated with the @method trait

C.  

A method that requires no parameters referring to the class itself

D.  

A method that works on class objects that are instantiated

Discussion 0
Questions 4

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

Discussion 0
Questions 5

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) :

Discussion 0
Questions 6

What isa___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 thetraceback

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

Discussion 0