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.
Which of the following statements are true? {Select two answers)
A. an escape sequence can be recognized by the / sign put in front of it
B. II in ASCII stands for Internal Information
C. ASCII is a subset of UNICODE
D. a code point is a number assigned to a given character
Which of the following statements are true? (Select two answers)
A. open () requires a second argument
B. open () is a function which returns an object that represents a physical file
C. instd, outstd, errstd are the names of pre-opened streams
D. if invoking open () fails, an exception is raised
Which of the equations are True? (Select two answers)
A. chr (ord (x)) = = x
B. ord (ord (x)) = = x
C. chr (chr (x)) = = x
D. ord (chr (x)) = = x
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
Which of the following expression evaluate to True? (Select two answers)
A. Option A
B. Option B
C. Option C
D. Option D
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
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
Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers) A. obj_b.prop_a == 3
B. hasattr(obj_b, 'prop_aa')
C. isinstance(obj_c,A)
D. B. VarA == 3
Can a module run like regular code?
A. yes, and it can differentiate its behavior between the regular launch and import
B. it depends on the Python version
C. yes, but it cannot differentiate its behavior between the regular launch and import
D. no. it is not possible; a module can be imported, not run
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Python Institute exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PCAP-31-03 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.