Real PCEP-30-01 Exam Dumps – Good For Certified Entry-Level Python Programmer (PCEP) Exam Learning

Before December 31, 2022, you can still choose to pass the PCEP-30-01 exam to earn the PCEP – Certified Entry-Level Python Programmer certification exam. Real PCEP-30-01 exam dumps of DumpsBase are available online to be your good learning materials. These Python Certification PCEP-30-01 dumps questions will definitely appear in the upcoming Certified Entry-Level Python Programmer (PCEP) certification exam, and you can easily pass the PCEP-30-01 exam on the first try.

You can try to check the free demo of real PCEP-30-01 exam dumps:

1. What are the four fundamental elements that make a language?

2. What will be the output of the following code snippet?

x = 1

y = 2

z = x

x = y

y = z

print (x, y)

3. Python is an example of:

4. What will be the output of the following code snippet?

print(3 / 5)

5. Strings in Python are delimited with:

6. What will happen when you attempt to run the following code?

print(Hello, World!)

7. A function definition starts with the keyword:

8. Assuming that the 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]

9. What is the expected output of the following code?

def func(x):

return 1 if x % 2 != 0 else 2

print(func(func(1)))

10. Take a look at the snippet, and choose the true statements: (Select two answers)

nums = [1, 2, 3]

vals = nums

del vals[1:2]

11. What is the output of the following code?

a = 1

b = 0

x = a or b

y = not(a and b)

print(x + y)

12. What is the output of the following snippet?

dct = {}

dct['1'] = (1, 2)

dct['2'] = (2, 1)

for x in dct.keys():

print(dct[x][1], end='')

13. What would you insert instead of so that the program checks for even numbers?

if ???:

print('x is an even number')

14. What is the expected output of the following code?

x = [0, 1, 2]

x.insert(0, 1)

del x[1]

print(sum(x))

15. The digraph written as #! is used to:

16. What is the expected output of the following code?

data = ['Peter', 404, 3.03, 'Wellert', 33.3]

print(data[1:3])

17. What will be the output of the following code snippet?

d = {}

d[1] = 1

d['1'] = 2

d[1] += 1

sum = 0

for k in d:

sum += d[k]

print(sum)

18. How many stars will the following snippet print to the monitor?

i = 4

while i > 0:

i -= 2

print('*')

if i == 2:

break

else:

print('*')

The snippet will enter an infinite loop.

19. What is CPython?

20. What is the expected output of the following code?

def func(p1, p2):

p1 = 1

p2[0] = 42

x = 3

y = [1, 2, 3]

func(x, y)

print(x, y[0])

21. What is the expected output of the following code?

def func(data):

for d in data[::2]:

yield d

for x in func('abcdef'):

print(x, end='')

22. You develop a Python application for your company.

You have the following code.

def main(a, b, c, d):

value = a + b * c - d

return value

Which of the following expressions is equivalent to the expression in the function?

23. What is the expected behavior of the following program?

try:

print(5/0)

break

except:

print("Sorry, something went wrong...")

except (ValueError, ZeroDivisionError):

print("Too bad...")

24. Which of the following variable names are illegal? (Select two answers)

25. What is the expected output of the following code?

z = y = x = 1

print(x, y, z, sep='*')

26. What is the expected output of the following code?

def func(text, num):

while num > 0:

print(text)

num = num - 1

func('Hello', 3)

27. What is the expected output of the following code?

x = True

y = False

z = False

if not x or y:

print(1)

elif not x or not y and z:

print(2)

elif not x or y or not y and x:

print(3)

else:

print(4)

28. What is the expected output of the following code?

x = [[[1, 2], [3, 4]], [[5, 6], [7, 8]]]

def func(data):

res = data[0][0]

for da in data:

for d in da:

if res < d:

res = d

return res

print(func(x[0]))

29. Which of the following for loops would output the below number pattern?

11111

22222

33333

44444

55555

30. What is the output of the following snippet?

def fun(x, y, z):

return x + 2 * y + 3 * z

print(fun(0, z=1, y=3))

31. The value thirty point eleven times ten raised to the power of nine should be written as:

32. The ABC organics company needs a simple program that their call center will use to enter survey data for a new coffee variety. The program must accept input and return the average rating based on a five-star scale.

The output must be rounded to two decimal places.

You need to complete the code to meet the requirements.

sum = count = done = 0

average = 0.0

while done != -1:

rating = XXX

if rating == -1:

break

sum += rating

count += 1

average = float(sum / count)

YYY + ZZZ

What should you insert instead of XXX, YYY and ZZZ?

33. Consider the following code snippet:

w = bool(23)

x = bool('')

y = bool(' ')

z = bool([False])

Which of the variables will contain False?

34. What is the expected output of the following code?

def func(num):

res = '*'

for _ in range(num):

res += res

return res

for x in func(2):

print(x, end='')

35. What is the expected output of the following code?

num = 1

def func():

num = num + 3

print(num)

func()

print(num)

36. The result of the following addition:

123 + 0.0

37. What is the expected output of the following code?

print(list('hello'))

38. What is the default return value for a function

that does not explicitly return any value?

39. Which of the following lines correctly invoke the function defined below:

def fun(a, b, c=0):

# Body of the function.

(Select two answers)

40. What is the expected output of the following code?

x = '''

print(len(x))


 

How to Pass the PCEP-30-02 Exam? Use the Newest PCEP-30-02 Exam Dumps of DumpsBase
Python PCAP Certification Exam - Updated PCAP-31-03 Dumps V12.02 To Be Your Good Preparation Materials

Add a Comment

Your email address will not be published. Required fields are marked *