Winter Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: dumps65

Python Institute PCPP-32-101 Dumps

Page: 1 / 5
Total 45 questions

PCPP1-Certified Professional in Python Programming 1 Questions and Answers

Question 1

What is ElementTree?

Options:

A.

A Python built-in module that contains functions used for creating HTML files.

B.

A Python library that contains an API used for parsing and manipulating JSON files.

C.

A Python library that contains functions and tools used for manipulating text files in GUI Programming.

D.

A Python built-in module that contains functions used for parsing and creating XML data.

Question 2

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.

Question 3

Which one of the following methods allows you to debug an XML tree in the xml.etree ELementTree module?

Options:

A.

debug

B.

dump

C.

log

D.

parse

Question 4

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.

Question 5

What is true about the invocation of the cget () method?

Options:

A.

It can be used to read widget attributes.

B.

It has the same effect as the config () method.

C.

It can be used to set new values to widget attributes.

D.

It can be replaced with a dictionary-like access manner.

Question 6

What is true about type in the object-oriented programming sense?

Options:

A.

It is the bottommost type that any object can inherit from.

B.

It is a built-in method that allows enumeration of composite objects

C.

It is the topmost type that any class can inherit from

D.

It is an object used to instantiate a class

Page: 1 / 5
Total 45 questions