Spring Sale Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: buysanta

Exact2Pass Menu

Certified Associate in Python Programming

Last Update 6 hours ago Total Questions : 154

The Certified Associate in Python Programming content is now fully updated, with all current exam questions added 6 hours ago. Deciding to include PCAP-31-03 practice exam questions in your study plan goes far beyond basic test preparation.

You'll find that our PCAP-31-03 exam questions frequently feature detailed scenarios and practical problem-solving exercises that directly mirror industry challenges. Engaging with these PCAP-31-03 sample sets allows you to effectively manage your time and pace yourself, giving you the ability to finish any Certified Associate in Python Programming practice test comfortably within the allotted time.

Question # 31

What is the expected behavior of the following code?

A.

Its outputs 321

B.

It raises an exception.

C.

It outputs 6.

D.

It outputs 123.

Question # 32

What is true about Python class constructors? (Select two answers)

A.

the constructor ' s first parameter identifies an object currently being created

B.

the constructor cannot use the default values of the parameters

C.

the constructor can be invoked directly under strictly defined circumstances

D.

super-class constructor is invoked implicitly during constructor execution

Question # 33

Python strings can be “glued” together using the operator:

A.

.

B.

&

C.

_

D.

+

Question # 34

A compiler is a program designed to (select two answers)

A.

rearrange the source code to make it clearer

B.

check the source code in order to see if its correct

C.

execute the source code

D.

translate the source code into machine code

Question # 35

A file name like this one below says mat: (select three answers)

services. cpython-36.pyc

A.

the interpreter used to generate the file is version 3.6

B.

it has been produced by CPython

C.

it is the 36th version of the file

D.

the file comes from the services . py source file

Question # 36

If you want to access an exception object ' s components and store them in an object called e, you have to use the following form of exception statement

A.

except Exception(e):

B.

except e=Exception:

C.

except Exception as e:

D.

such an action is not possible in Python

Question # 37

What is true about Python packages? (Select two answers)

A.

the__name__variable always contains the name of a package

B.

a package is a group of related modules

C.

the pyc extension is used to mark semi-compiled Python packages

D.

a package is a single file whose name ends with the pa extension

Question # 38

What is the expected behavior of the following code?

A.

It outputs 2

B.

It outputs 0.

C.

It outputs 1.

D.

It raises an exception

Question # 39

If you need to serve two different exceptions called Ex1 and Ex2 in one except branch, you can write:

A.

except Ex1 Ex2:

B.

except (ex1, Ex2):

C.

except Ex1, Ex2:

D.

except Ex1+Ex2:

Question # 40

Which of the following statements are true? {Select two answers)

A.

an escape sequence can be recognized by the / sign put in front of it

B.

II in ASCII stands for Internal Information

C.

ASCII is a subset of UNICODE

D.

a code point is a number assigned to a given character

Go to page: