Pre-Summer Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = getmirror

Pass the Python Institute PCAP PCAP-31-03 Questions and answers with ExamsMirror

Practice at least 50% of the questions to maximize your chances of passing.
Exam PCAP-31-03 Premium Access

View all detail and faqs for the PCAP-31-03 exam


833 Students Passed

93% Average Score

96% Same Questions
Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions
Questions # 11:

What is the expected behavior of the following code?

Question # 11

Options:

A.

it outputs False

B.

it outputs True

C.

it raises an exception

D.

it outputs nothing

Questions # 12:

What is the expected behavior of the following code?

Question # 12

Options:

A.

it outputs error

B.

it outputs list assignment index out of range

C.

the code is erroneous and it will not execute

D.

it outputs

Questions # 13:

What is the expected output of the following snippet?

Question # 13

Options:

A.

True False

B.

True True

C.

False False

D.

False True

Questions # 14:

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

Question # 14

Options:

A.

is instance(obj_b,C)

B.

C._C__VarA == 2

C.

has atr (B, 'get')

D.

obj_c.get() == 2

Questions # 15:

What is true about the following snippet? (Select two answers)

Question # 15

Options:

A.

the code will raise an unhandled exception

B.

the string I feel fine 'will be seen

C.

the string it's nice to see you will be seen

D.

the string what a pity will be seen

Questions # 16:

What is the expected behavior of the following code?

Question # 16

Options:

A.

it outputs 1

B.

it outputs 2

C.

the code is erroneous and it will not execute

D.

it outputs 3

Questions # 17:

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

A)

Question # 17

B)

Question # 17

C)

Question # 17

D)

Question # 17

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Questions # 18:

A variable stored separately in every object is called:

Options:

A.

there are no such variables, all variables are shared among objects

B.

a class variable

C.

an object variable

D.

an instance variable

Questions # 19:

What is the expected output of the following code?

def foo(x,y,z):

return x(y) - x(z)

print{f00(lambda x: x % 2, 2, 1) )

Options:

A.

1

B.

0

C.

-1

D.

an exception is raised

Questions # 20:

Which line can be used instead of the comment to cause the snippet to produce the following expected output? (Select two answers)

Expected output:

1 2 3

Code:

Question # 20

Options:

A.

c, b, a = b, a, c

B.

c, b, a = a, c, b

C.

a, b, c = c, a, b

D.

a, b, c = a, b, c

Viewing page 2 out of 5 pages
Viewing questions 11-20 out of questions
TOP CODES

TOP CODES

Top selling exam codes in the certification world, popular, in demand and updated to help you pass on the first try.