Pre-Winter Sale Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 65pass65

Free PCPP1 – Certified Professional in Python Programming 1 Practice Questions

Exams4sure Dumps

Exam style questions across every PCPP-32-101 domain

Last Update 2 days ago
Total Questions : 69

Start with our free PCPP-32-101 practice questions, carefully crafted to mirror the domains, phrasing, and difficulty of the real PCPP1 exam. Each PCPP-32-101 exam question comes with a detailed rationale that explains not just which answer is correct but why the others fall short. That's how concepts stick. Use the free set to benchmark yourself: identify your Python Institute weak domains, see where you're losing marks, and build a focused study plan in minutes.

PCPP-32-101 PDF

PCPP-32-101 PDF (Printable)
$54.25
$154.99

PCPP-32-101 Testing Engine

PCPP-32-101 PDF (Printable)
$59.5
$169.99

PCPP-32-101 PDF + Testing Engine

PCPP-32-101 PDF (Printable)
$74.55
$212.99
Question # 11

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

A)

Question # 11

B)

Question # 11

C)

Question # 11

D)

Question # 11

Options:

A.  

Option A

B.  

Option B

C.  

Option C

D.  

Option D

Discussion 0
Question # 12

Select the true statements related to PEP 257. (Select two answers.)

Options:

A.  

The closing quotes of a one-line docstring should be put on a separate line.

B.  

A docstring is a string literal that occurs anywhere in Python code, and is used to document Python functions, classes, and public methods.

C.  

A docstring is a string literal that occurs as the first statement in a Python module, function, class, or method, and is used to document them.

D.  

There are two types of docstrings in Python: one-line and multi-line docstrings.

Discussion 0
Question # 13

What is true about the following snippet of code?

class Cat:

def __init__(self, weight, sex):

self.height = height

self.weight = weight

self.sex = sex

def say(self):

print('meows')

kitty = Cat(1, 'male')

kitty.say()

Options:

A.  

The snippet will print: 1 male.

B.  

The snippet will cause a NameError exception.

C.  

The snippet will print: meows.

D.  

The snippet will cause a ValueError exception.

Discussion 0
Question # 14

In the JSON processing context, the term serialization:

Options:

A.  

names a process in which Python data is turned into a JSON string.

B.  

names a process in which a JSON string is turned into Python data.

C.  

refers to nothing, because there is no such thing as JSON serialization.

D.  

names a process in which a JSON string is remodeled and transformed into a new JSON string

Discussion 0
Question # 15

What is true about the constructor’s argument, which sets the button’s title to a desired string?

Options:

A.  

It is the second argument of the constructor.

B.  

It is the third argument of the constructor.

C.  

It is a keyword argument named title.

D.  

It is a keyword argument named text.

Discussion 0
Question # 16

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

Question # 16

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
Question # 17

Select the correct statements about the csv module.

(Select two answers.)

Options:

A.  

The DictReader method always gets the header from the first line in the file.

B.  

A reader object maps each row to a list of strings.

C.  

It is possible to create a DictWriter object without specifying a header.

D.  

A DictReader object maps each row to a dict.

Discussion 0
Question # 18

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

Options:

A.  

Class names should use the mixedCase naming style.

B.  

Exception names should follow the function naming conventions.

C.  

Modules should have short names entirely in lower-case.

D.  

You should never use the characters “l” (lower-case letter “el”) and “O” (upper-case letter “oh”) as single character variable names.

Discussion 0
Question # 19

What is wrong with the following snippet?

class A:

def run(self):

print("A is running")

class B(A):

def run(self):

print("B is running")

class C(A, B):

def fly(self):

print("C is flying")

c = C()

Options:

A.  

There is no run() method defined for the C class.

B.  

It causes MRO inconsistency.

C.  

Nothing. The code is fine.

D.  

There are no __init__() methods — each class should implement this method.

Discussion 0
Question # 20

Which of the following is not a widget property?

Options:

A.  

width

B.  

underline

C.  

highlightthickness

D.  

depth

Discussion 0

Free Exams Sample Questions