What is true about the following snippet? (Select two answers)
A. the code will raise an unhandled exception
B. the string I feel fine 'will be seen
C. the string it's nice to see you will be seen
D. the string what a pity will be seen
Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers.)
A. a is not None
B. a ! =b
C. b () ==4
D. a () == 4
What is the expected behavior of the following code?
A. it outputs list assignment index out of range
B. the code is erroneous and it will not execute
C. it outputs
D. it outputs error
Which of the following invocations are valid? (Select two answers)
A. sorted ("python'')
B. "python" .sort ( )
C. sort" ("python")
D. "python' ,find (" ")
Which of the following expressions evaluate to True? (Select two answers)
A. len ('' ' '') == 2
B. len ( ' ' ' 12 34 ' ' ') == 4
C. chr (ord('z') - 1 == 'Y'
D. ord (''0'') - ord (''9'') == 10
What is the expected behavior of the following code?
It will:
A. print 4321
B. print
C. cause a runtime exception
D. print 1234
What is the expected behavior of the following code?
It will
A. print 2 1
B. print 1 2
C. cause a runtime exception
D. print
Which of the following statements are true? (Select two answers)
A. open () is a function which returns an int that represents a physical file handle
B. the second open () argument is optional
C. instd, outstd, errstd are the names of pre-opened streams
D. if invoking open () fails, the value None is returned
Assuming that the following snippet has been successfully executed, which of the equations are True? (Select two answers)
A. len(a) == len (b)
B. b[0] fe- 1 == a[0]
C. a [0] == b [0]
D. a[0] + 1 == b[0]
What is the expected output of the following code?
A. True
B. 0
C. False
D. None
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.