Exam2pass
0 items Sign In or Register
  • Home
  • IT Exams
  • Guarantee
  • FAQs
  • Reviews
  • Contact Us
  • Demo
Exam2pass > 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

Correct Answer: D

Questions 5

Which of the following lambda function definitions are correct? (Select two answers)

A. lambda X : None

B. lambda : 3,1415

C. lambda x : def fun(x): return x

D. lambda lambda: lambda * lambda

Buy Now

Correct Answer: AB

Questions 6

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

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

B. 'AbC' lower () < 'AB'

C. '1' + '1' + '1' < '1' * 3'

D. '3.14' != str(3.1415)

Buy Now

Correct Answer: AD

Questions 7

What is the expected output of the following code?

A. True

B. 0

C. False

D. None

Buy Now

Correct Answer: A

Questions 8

What is true about Python packages? (Select two answers)

A. the__name__variable always contains the name of a package

B. a package is a group of related modules

C. the pyc extension is used to mark semi-compiled Python packages

D. a package is a single file whose name ends with the pa extension

Buy Now

Correct Answer: BC

Questions 9

What is true about Python packages? (Select two answers)

A. the sys.path variable is a list of strings

B. _pycache_is a folder that stores semi-completed Python modules

C. a package contents can be stored and distributed as an mp3 file

D. a code designed to initialize a package's state should be placed inside a file named init.py

Buy Now

Correct Answer: AB

Questions 10

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

Correct Answer: D

Questions 11

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

A. 121 +1 == int ('1' + 2 * '2')

B. float ('3.14') == str('3.'+'14')

C. 'xyz'.lower() 'XY'

D. '8' + '8' !=2 * '8'

Buy Now

Correct Answer: AC

Questions 12

What can you do if you don't like a long package path tike this one0 import alpha.beta.gamma.delta.epsiIon.zeta

A. you can make an alias for the name using the a 1 i a s keyword

B. nothing; you need to come to terms with it

C. you can shorten it to alpha. zeta and Python will find the proper connection

D. you can make an alias for the name using die as keyword

Buy Now

Correct Answer: D

Reference: https://stackoverflow.com/questions/706595/can-you-define-aliases-for- imported-modules-in-python

Questions 13

What is the expected output of the following code?

def foo(x,y):

return y(x) + (x+1) print (Foo(1,lambda x: x*x))

A. 3

B. 5

C. 4

D. an exception is raised

Buy Now

Correct Answer: A

Exam Code: PCAP-31-03
Exam Name: PCAP - Certified Associate in Python Programming
Last Update: Jul 01, 2026
Questions: 153

PDF (Q&A)

$45.99
ADD TO CART

VCE

$49.99
ADD TO CART

PDF + VCE

$59.99
ADD TO CART

Exam2Pass----The Most Reliable Exam Preparation Assistance

There are tens of thousands of certification exam dumps provided on the internet. And how to choose the most reliable one among them is the first problem one certification candidate should face. Exam2Pass provide a shot cut to pass the exam and get the certification. If you need help on any questions or any Exam2Pass exam PDF and VCE simulators, customer support team is ready to help at any time when required.

Home | Guarantee & Policy |  Privacy & Policy |  Terms & Conditions |  How to buy |  FAQs |  About Us |  Contact Us |  Demo |  Reviews

2026 Copyright @ exam2pass.com All trademarks are the property of their respective vendors. We are not associated with any of them.