Weekend Special Limited Time 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code = simple70

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


488 Students Passed

95% Average Score

91% Same Questions
Viewing page 1 out of 5 pages
Viewing questions 1-10 out of questions
Questions # 1:

Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)

Question # 1

Options:

A.

len(a) == len (b)

B.

b[0] fe- 1 == a[0]

C.

a [0] == b [0]

D.

a[0] + 1 == b[0]

Questions # 2:

A property that stores information about a given class's super-classes is named:

Options:

A.

_upper_

B.

_bases_

C.

_ancestors_

D.

_super_

Questions # 3:

You are going to read just one character from a stream called s. Which statement would you use?

Options:

A.

ch = read(s, 1)

B.

ch = s. input(1)

C.

ch = input(s, 1)

D.

ch = s. read(l)

Questions # 4:

What is the expected behavior of the following code?

Question # 4

Options:

A.

it outputs 2

B.

it raises an exception

C.

it outputs 3

D.

it outputs 5

Questions # 5:

What is the expected behavior of the following snippet?

Question # 5

It will:

Options:

A.

cause a runtime exception

B.

print 1

C.

print 0 , [1]

D.

print [1J

Questions # 6:

What is the expected output of the following snippet?

Question # 6

Options:

A.

the code is erroneous

B.

3

C.

7

D.

15

Questions # 7:

What is the expected output of the following code?

Question # 7

Options:

A.

21

B.

2

C.

3

D.

12

Questions # 8:

What is the expected behavior of the following code?

Question # 8

Options:

A.

it outputs 6

B.

it outputs 1

C.

it outputs 3

D.

it raises an exception

Questions # 9:

What is the expected behavior of the following code?

x = 8 ** (1/3)

y = 2. if x < 2.3 else 3.

print(y)

Options:

A.

it outputs 2.0

B.

it outputs 2. 5

C.

the code is erroneus and it will not execute

D.

it outputs 3.0

Questions # 10:

Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)

Question # 10

Options:

A.

len(a)== len (b)

B.

a [0]-1 ==b [0]

C.

a[0] = b[0]

D.

b[0] - 1 == a[0]

Viewing page 1 out of 5 pages
Viewing questions 1-10 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.