Python Institute PCAP-31-03 Exam
Certified Associate in Python Programming Exam (Page 6 )

Updated On: 12-Jan-2026

A file name like this one below says mat: (select three answers) services. cpython-36.pyc

  1. the interpreter used to generate the file is version 3.6
  2. it has been produced by CPython
  3. it is the 36th version of the file
  4. the file comes from the services . py source file

Answer(s): A,B,D



What is the expected behavior of the following snippet?



It will:

  1. cause a runtime exception
  2. print 1
  3. print 0 , [1]
  4. print [1J

Answer(s): A

Explanation:



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

  1. you can make an alias for the name using the a 1 i a s keyword
  2. nothing; you need to come to terms with it
  3. you can shorten it to alpha. zeta and Python will find the proper connection
  4. you can make an alias for the name using die as keyword

Answer(s): D


Reference:

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



What is the expected output of the following code?

  1. abcef
  2. The program will cause a runtime exception error
  3. acdef
  4. abdef

Answer(s): B

Explanation:



What is the expected output of the following code?

  1. 21
  2. 2
  3. 3
  4. 12

Answer(s): A

Explanation:



Viewing page 6 of 30
Viewing questions 26 - 30 out of 147 questions



Post your Comments and Discuss Python Institute PCAP-31-03 exam prep with other Community members:

Join the PCAP-31-03 Discussion