Weekend Sale - 70% Discount Offer - Ends in 0d 00h 00m 00s - Coupon code: best70

Page: 1 / 5
Total 44 questions
Exam Code: PCAP-31-03                Update: Sep 14, 2025
Exam Name: Certified Associate in Python Programming

Python Institute Certified Associate in Python Programming PCAP-31-03 Exam Dumps: Updated Questions & Answers (September 2025)

Question # 1

A file name like this one below says mat: (select three answers)

services. cpython-36.pyc

A.

the interpreter used to generate the file is version 3.6

B.

it has been produced by CPython

C.

it is the 36th version of the file

D.

the file comes from the services . py source file

Question # 2

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

string = 'SKY' (:: -1)

string = string (-1)

A.

string is None

B.

string (0) == string (-1

C.

string (0) == 'Y'

D.

len (string) == 1

Question # 3

What is the expected behavior of the following code?

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

Question # 4

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

string = 'python' [::2]

string = string[-1] + string[-2]

A.

string[0] == string[-1]

B.

string is None

C.

len (string] == 3

D.

string[0] == 'o'

Question # 5

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

A.

len ('' ' '') == 2

B.

len ( ' ' ' 12

34 ' ' ') == 4

C.

chr (ord('z') - 1 == 'Y'

D.

ord (''0'') - ord (''9'') == 10

Question # 6

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

A.

len(a)== len (b)

B.

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

C.

a[0] = b[0]

D.

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

Question # 7

What is the expected behavior of the following code?

A.

it raises an exception

B.

it outputs True

C.

it outputs False

D.

it outputs nothing

Question # 8

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

Question # 9

What is the expected behavior of the following snippet?

It will:

A.

cause a runtime exception on line 02

B.

cause a runtime exception on line 01

C.

cause a runtime exception on line 03

D.

print3

Question # 10

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

A.

'var' in Object.__dict__

B.

'prop' in Class.__dict

C.

len(Object.__diet__) == 1

D.

'var1 in Class, dict

Page: 1 / 5
Total 44 questions

Most Popular Certification Exams

Payment

       

Contact us

dumpscollection live chat

Site Secure

mcafee secure

TESTED 14 Sep 2025