Try Latest & Free Python Institute PCAP-31-03 Real Dumps

Download as pdf or txt
Download as pdf or txt
You are on page 1of 11

PCAP-31-03 Free Dumps

Certified Associate in Python


Programming Exam

https://www.passcert.com/PCAP-31-03.html
1. Python's built-in function named open () tries to open
a file and returns:
A. an integer value identifying an opened file
B. an error code (0 means success)
C. a stream object
D. always None
Answer: C

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
2. The first parameter of each method:
A. holds a reference to the currently processed object
B. is always set to None
C. is set to a unique random value
D. is set by the first argument's value
Answer: D

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
3.Assuming that String is six or more letters long, the
following slice String [1:-2] is shorter than the original
string by:
A. four chars
B. three chars
C. one char
D. two chars
Answer: B

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
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)
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
Answer: A,D

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
5. 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
Answer: A,B,D

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
6. A class constructor (Select two answers)
A. can return a value
B. cannot be invoked directly from inside the class
C. can be invoked directly from any of the subclasses
D. can be invoked directly from any of the superclasses
Answer: B,C

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
7. What is true about Python class constructors? (Select two answers)
A. the constructor's first parameter identifies an object currently
being created
B. the constructor cannot use the default values of the parameters
C. the constructor can be invoked directly under strictly defined
circumstances
D. super-class constructor is invoked implicitly during constructor
execution
Answer: A

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
8. 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
Answer: D

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
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
Answer: B,D

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success
10. Which of the following statements are true? (Select two answers)
A. Python strings are actually lists
B. Python strings can be concatenated
C. Python strings can be sliced like lists
D. Python strings are mutable
Answer: B,C

Download Passcert Latest & Valid PCAP-31-03 Free Dumps To Ensure Your Success

You might also like