Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)
A. is instance(obj_b,C)
B. C._C__VarA == 2
C. has atr (B, 'get')
D. obj_c.get() == 2
A property that stores information about a given class's super-classes is named:
A. _upper_
B. _bases_
C. _ancestors_
D. _super_
Which of the following statements are true? (Select two answers)
A. a code point is a point inside the code when execution stops immediately
B. an escape sequence can be recognized by the # sign put in front of it.
C. UTF-8 is one of the ways of representing UNICODE code points.
D. ASCII is the name of a character coding standard
Which of the following lambda definitions are correct? (Select two answers)
A. lanbda x, y; return x\\y - x%y
B. lambda x, y: x//y - x%y
C. lambda (x, y = x\\y x%y
D. lambda x, y: (x, y)
Which one of the platform module functions should be used to determine the underlying platform name?
A. platform.uname ()
B. platform.platform ()
C. platform.python_version()
D. platform.processor()
An operator able to perform bitwise shifts is coded as (select two answers)
A. -
B. ++
C. <<
D. >>
What is the expected behavior of the following code?
A. it outputs 1
B. it outputs 0
C. it raises an exception
D. it outputs 2
Assuming that the math module has been successfully imported, which of the following expressions evaluate to True? (Select two answers)
A. math. hypot (3,4) == math.sqrt (25)
B. math. hypot (2,5) == math.truec (2.5)
C. math. hypot (2,5) == math.true (2.5)
D. math. cell (2,5) == math.floor (2.5)
What is the expected behavior of the following code?
A. the code is erroneous and it will not execute
B. it outputs 'tuple' object does not support item assignment
C. 0it outputs list assignment index out of range
D. it outputs None
What is the expected behavior of the following code?
x = 8 ** (1/3)
y = 2. if x < 2.3 else 3.
print(y)
A. it outputs 2.0
B. it outputs 2. 5
C. the code is erroneus and it will not execute
D. it outputs 3.0
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.