Leads4pass > Python Institute > Python Institute Certifications > PCAP-31-03 > PCAP-31-03 Online Practice Questions and Answers

PCAP-31-03 Online Practice Questions and Answers

Questions 4

Files with the suffix .pyc contain:

A. Python 4 source code

B. backups

C. temporary data

D. semi-compiled Python code

Buy Now
Questions 5

Which of the listed actions can be applied to the following tuple? (Select two answers)

A. tup [:]

B. tup.append (0)

C. tup [0]

D. del tup

Buy Now
Questions 6

What is the expected behavior of the following code?

A. it outputs -2

B. it outputs 2. 0

C. it outputs 0. 0

D. the code is erroneous and it will not execute

Buy Now
Questions 7

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

Buy Now
Questions 8

A compiler is a program designed to (select two answers)

A. rearrange the source code to make it clearer

B. check the source code in order to see if its correct

C. execute the source code

D. translate the source code into machine code

Buy Now
Questions 9

What is the expected behavior of the following code?

It will:

A. print 4321

B. print

C. cause a runtime exception

D. print 1234

Buy Now
Questions 10

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

A. Option A

B. Option B

C. Option C

D. Option D

Buy Now
Questions 11

What is a true about python class constructors? (Select two answers)

A. the constructor must have at least one parameter

B. the constructor must return a value other than None

C. the constructor is a method named_init_

D. there can the more than one constructor in a Python class.

Buy Now
Questions 12

What is the expected behavior of the following code?

A. it outputs 'None'

B. it outputs 3

C. it raises an exception

D. it outputs 0

Buy Now
Questions 13

A method for passing the arguments used by the following snippet is called:

A. sequential

B. named

C. positional

D. keyword

Buy Now
Exam Code: PCAP-31-03
Exam Name: PCAP - Certified Associate in Python Programming
Last Update: Jul 04, 2026
Questions: 153
10%OFF Coupon Code: SAVE10

PDF (Q&A)

$49.99

VCE

$55.99

PDF + VCE

$65.99