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

PCAP-31-03 Exam Dumps - Certified Associate in Python Programming

Searching for workable clues to ace the Python Institute PCAP-31-03 Exam? You’re on the right place! ExamCert has realistic, trusted and authentic exam prep tools to help you achieve your desired credential. ExamCert’s PCAP-31-03 PDF Study Guide, Testing Engine and Exam Dumps follow a reliable exam preparation strategy, providing you the most relevant and updated study material that is crafted in an easy to learn format of questions and answers. ExamCert’s study tools aim at simplifying all complex and confusing concepts of the exam and introduce you to the real exam scenario and practice it with the help of its testing engine and real exam dumps

Go to page:
Question # 25

What is true about Python class constructors? (Choose two.)

A.

there can be more than one constructor in a Python class

B.

the constructor must return a value other than None

C.

the constructor is a method named __init__

D.

the constructor must have at least one parameter

Full Access
Question # 26

Which of the following literals reflect the value given as 34.23? (select two answers)

A.

.3423e2

B.

3423e-2

C.

.3423e-2

D.

3423e2

Full Access
Question # 27

The following class definition is given. We want the show () method to invoke the get () method, and then output the value the get () method returns. Which of the invocations should be used instead of XXX?

A.

print (get(self))

B.

print (self.get())

C.

print (get())

D.

print (self.get (val))

Full Access
Question # 28

Which of the following words can be used as a variable name? (Select two valid names)

A.

for

B.

True

C.

true

D.

For

Full Access
Question # 29

Select the valid fun () invocations:

(select two answers)

def fun (a, b=0):

return a*b

A.

fun(b=1)

B.

fun (a=0)

C.

fun(b=1, 0)

D.

fun (1)

Full Access
Question # 30

Which of the following invocations are valid? (Select two answers)

A.

sorted ("python'')

B.

"python" .sort ( )

C.

sort" ("python")

D.

"python' ,find (" ")

Full Access
Question # 31

What is the expected output of the following code?

A.

4

B.

16

C.

an exception is raised

D.

1

Full Access
Question # 32

Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

A.

is instance(obj_b,C)

B.

C._C__VarA == 2

C.

has atr (B, 'get')

D.

obj_c.get() == 2

Full Access
Go to page: