Python Institute Entry-Level Python Programmer (PCEP) Certification Sample Questions

Entry-Level Python Programmer Dumps, PCEP Dumps, PCEP PDF, Entry-Level Python Programmer VCE, Python Institute PCEP VCEThe purpose of this Sample Question Set is to provide you with information about the Python Institute Certified Entry-Level Python Programmer exam. These sample questions will make you very familiar with both the type and the difficulty level of the questions on the PCEP certification test. To get familiar with real exam environment, we suggest you try our Sample Python Institute Entry-Level Python Programmer Certification Practice Exam. This sample practice exam gives you the feeling of reality and is a clue to the questions asked in the actual Python Institute Certified Entry-Level Python Programmer (PCEP) certification exam.

These sample questions are simple and basic questions that represent likeness to the real Python Institute PCEP exam questions. To assess your readiness and performance with real time scenario based questions, we suggest you prepare with our Premium Python Institute Entry-Level Python Programmer Certification Practice Exam. When you solve real time scenario based questions practically, you come across many difficulties that give you an opportunity to improve.

Python Institute PCEP Sample Questions:

01. What is the expected output of the following code if the user enters 2 and then 4?
x = input()
y = input()
print(x + y)
a) 4
b) 6
c) 24
d) 2
 
02. dict = {'en': 'dog', 'pl': 'pies', 'es': 'perro', 'jp': 'inu'}
print(dict['pies'])
What will happen when the program above is run?
a) Python will show 'dog'
b) Python will show a KeyError
c) Python will show 'pl'
d) Python will show 'perro'
 
03. If values is a list with five elements, then calling values[0:2]...
a) ...returns a list with two elements
b) ...returns a list with three elements
c) ...returns a list with a single element
d) ...returns an empty list
 
04. A function is defined in the following way.
def do_magic(a = 0):
print(a)
Which statement about this function is true?
a) Must be invoked with no arguments
b) May or may not be invoked with no arguments
c) Must be invoked with exactly one argument
d) Will print different output when invoked twice: first do_magic() and then do_magic(0).
 
05. You need to handle two different exceptions, called Ex1 and Ex2, in a single except branch. Which form does this?
a) except Ex1 Ex2:
b) except Ex1+Ex2:
c) except Ex1, Ex2:
d) except (Ex1, Ex2):
 
06. Consider the following code.
my_vals = [1, 2, 3, 4, 5]
my_vals[1], my_vals[2] = my_vals[2], my_vals[1]
The code…
a) …doesn't change the number of elements in the list
b) …doesn't change the list
c) …shortens the list
d) …reverses the list
 
07. How many elements does the cities list hold after this code has run?
cities = ['Warsaw', 'Cracow', 'Gdansk', 'Szczebrzeszyn Dolny']
del cities[:]
a) 2
b) 1
c) 0
d) 3
 
08. Which line properly starts a function taking two parameters, both with zeroed default values?
a) fun fun(a, b=0):
b) def fun(a=b=0):
c) fun fun(a=0, b):
d) def fun(a=0, b=0):
 
09. How many star characters (*) does the following code produce?
list_a = [0, 1, 2, 3]
list_b = [3, 4, 5, 6]
for el in list_a:
if el in list_b:
print('*')
a) 0
b) 4
c) 1
d) 8
 
10. Assuming my_tuple is a correctly created tuple, the fact that tuples are immutable means that the following instruction:
my_tuple[1] = my_tuple[1] + my_tuple[0]
a) can be executed if and only if the tuple contains at least two elements
b) is illegal
c) may be illegal if the tuple contains strings
d) is fully correct

Answers:

Question: 01
Answer: c
Question: 02
Answer: b
Question: 03
Answer: a
Question: 04
Answer: b
Question: 05
Answer: d
Question: 06
Answer: a
Question: 07
Answer: c
Question: 08
Answer: d
Question: 09
Answer: c
Question: 10
Answer: b

Note: For any error in Python Institute Certified Entry-Level Python Programmer (PCEP) certification exam sample questions, please update us by writing an email on feedback@edusum.com.

Rating: 4.6 / 5 (116 votes)