What is the expected output of the following code if the user enters 2 and 4?
A. 6
B. 2
C. 4
D. 24
Consider the following Python code:
What are the types of the variables name, age and ag?
A. oat, bool, str
B. str, int, bool
C. int, bool, char
D. str, int, int
You want to print each name of the list on a new line.
data = ['Peter', 'Paul', 'Mary', 'Jane']
Which statement will you use?
A. print(data.concatenate('\n'))
B. print('\n'.join(data))
C. print(data.join('\n'))
D. print(data.join('%s\n', names))
What is the expected output of the following code? print(type(1J))
A.
B.
C.
D.
You are an intern for ABC electric cars company. You must create a function that calculates the average velocity of their vehicles on a 1320 foot (1/4 mile) track. Consider the following code.
The output must be as precise as possible. What would you insert instead of ??? and ??? ?
A. 1 | int 2 | int
B. 1 | oat 2 | oat
C. 1 | int 2 | oat
D. 1 | oat 2 | int
What is the result of the following code?
B. The program will cause an error.
C. 1
D. 3
The most important difference between integer and oating-point numbers lies in the fact that:
A. they are stored differently in the computer memory
B. they cannot be used simultaneously
C. integers cannot be literals, while oats can
What is the expected output of the following code? print(ord('c') ?ord('a'))
A. 1
B. 2
C. 3
D. 0
Consider the following python code:
What are the data types of the variables z1, z2 and z3?
A. str, str, str
B. str, oat, oat
C. str, int, int
D. str, int, oat
What is the expected output of the following code? print(chr(ord('p') + 3))
A. q
B. r
C. t
D. s
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 PCEP-30-02 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.