Summer Sale Special Limited Time 65% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: v4s65

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

Go to page:
Question # 9

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

A.

rfind("python","r")

B.

sorted("python")

C.

"python".sort ()

D.

"python".index("th")

Full Access
Question # 10

What is the expected behavior of the following code?

A.

it outputs 1

B.

it outputs 0

C.

it raises an exception

D.

it outputs 2

Full Access
Question # 11

Which of the following expressions evaluate to True? (Select two answers.)

A)

B)

C)

D)

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Full Access
Question # 12

What is the expected output of the following code?

A.

3

B.

5

C.

4

D.

an exception is raised

Full Access
Question # 13

What will be the value of the i variable when the while e loop finishes its execution?

A.

1

B.

0

C.

2

D.

the variable becomes unavailable

Full Access
Question # 14

Which of the following lambda function definitions are correct? (Select two answers)

A.

lambda X : None

B.

lambda : 3,1415

C.

lambda x : def fun(x): return x

D.

lambda lambda: lambda * lambda

Full Access
Question # 15

What is the expected behavior of the following snippet?

It will:

A.

cause a runtime exception

B.

print 1

C.

print 0 , [1]

D.

print [1J

Full Access
Question # 16

How many elements will the list2 list contain after execution of the following snippet?

list1 = [False for i in range (1, 10) ]

list2 = list1 [-1:1:-1]

A.

zero

B.

five

C.

seven

D.

three

Full Access
Go to page: