Black Friday 55% Special Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: 63r59951

PCAP-31-03 Certified Associate in Python Programming Questions and Answers

Questions 4

A Python module named pymod.py contains a variable named pyvar.

Which of the following snippets will let you access the variable? (Select two answers)

Options:

A.

import pyvar from pymod pyvar = 1

B.

from pymod import pyvar = 1

C.

from pymod import pyvar pyvar ()

D.

import pymod pymod.pyvar = 1

Buy Now
Questions 5

Which of the following snippets will execute without raising any unhandled exceptions? (Select answers)

A)

B)

C)

D)

Options:

A.

Option A

B.

Option B

C.

Option C

D.

Option D

Buy Now
Questions 6

What is the expected behavior of the following code?

Options:

A.

the code is erroneus and it will not execute

B.

it outputs [2, 4]

C.

it outputs [4, 2]

D.

it outputs [0, 1, 2, 3, 4]

Buy Now
Questions 7

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

Options:

A.

rfind("python","r")

B.

sorted("python")

C.

"python".sort ()

D.

"python".index("th")

Buy Now
Questions 8

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

Options:

A.

121 + 1 != '!' + 2 * '2'

B.

'AbC' lower () < 'AB'

C.

'1' + '1' + '1' < '1' * 3'

D.

'3.14' != str(3.1415)

Buy Now
Exam Code: PCAP-31-03
Exam Name: Certified Associate in Python Programming
Last Update: Nov 29, 2020
Questions: 54

PDF + Testing Engine

$56.25  $124.99

Testing Engine

$40.5  $89.99

PDF (Q&A)

$36  $80.00