Assuming that the following snippet has been successfully executed, which of the equations are False? (Select two answers)
A. len(a)== len (b)
B. a [0]-1 ==b [0]
C. a[0] = b[0]
D. b[0] - 1 == a[0]
A Python module named pymod, py contains a function named pyfun ( ).
Which of the following snippets will let you invoke the function? (Select two answers)
A. From pymod import ` Pymod.pyfun ( )
B. Import pymod Pymod. Pyfun ( )
C. Import pyfun from pymod Pyfun ( )
D. From pymod import pyfun Pyfun ( )
How many elements will the list2 list contain after execution of the following snippet?
list1 = [False for i in range (1, 10) ]
list2 = list1 [-1:1:-1]
A. zero
B. five
C. seven
D. three
You are going to read 16 bytes from a binary file into a bytearray called data. Which lines would you use? (Select two answers)
A. data = bytearray (16) bf.readinto (data)
B. data = binfile.read (bytearray (16))
C. bf. readinto (data = bytearray (16))
D. data = bytearray (binfile.read (16))
Assuming that the snippet below has been executed successfully, which of the following expressions will evaluate to True? (Select two answers)
string = 'python' [::2]
string = string[-1] + string[-2]
A. string[0] == string[-1]
B. string is None
C. len (string] == 3
D. string[0] == 'o'
The__bases__property contains:
A. base class locations (addr)
B. base class objects (class)
C. base class names (str)
D. base class ids (int)
Which of the following expressions evaluate to True? (Select two answers)
A. 121 + 1 != '!' + 2 * '2'
B. 'AbC' lower () < 'AB'
C. '1' + '1' + '1' < '1' * 3'
D. '3.14' != str(3.1415)
Which of the following expressions evaluate to True? (Select two answers)
A. 11 == '011'
B. 3 * 'a' < 'a' * 2
C. 'abc' .upper () < 'abc'
D. '1' + '2' * 2 !=2 '12'
What is the expected output of the following code?
A. 4
B. 16
C. an exception is raised
D. 1
What is the expected output of the following snippet?
A. 3
B. 1
C. 2
D. the code is erroneous
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.