How to Pass the PCEP-30-02 Exam? Use the Newest PCEP-30-02 Exam Dumps of DumpsBase

If you are looking for a way to start your career in Python programming or to enhance your existing skills and knowledge, you may want to consider taking the PCEP-30-02 exam. This exam is offered by the Python Institute and it validates your ability to perform basic coding tasks in Python. Passing this exam will earn you the PCEP – Certified Entry-Level Python Programmer certification, which is a valuable credential for any aspiring or current Python programmer. Our newest PCEP-30-02 exam dumps are not only useful for preparing for the exam but also for learning and improving your Python programming skills in general. Our newest PCEP-30-02 exam dumps will help you achieve your goals and become a certified Python professional.

Try to read the free demo of the Python Institute PCEP-30-02 dumps below:

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))

41. Which of the following statements are true? (Select two answers)

42. What do you call a tool that lets you lanch your code step-by-step and inspect it at each moment of execution?

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

list1 = [1, 3]

list2 = list1

list1[0] = 4

print(list2)

44. How many stars will the following code print to the monitor?

i = 0

while i <= 3:

i += 2

print('*')

45. What is the expected output of the following code if the user enters 2 and 4?

x = input()

y = input()

print(x + y)


 

Prepare for the PCPP-32-101 PCPP1-Certified Professional in Python Programming 1 Exam with DumpsBase PCPP-32-101 Dumps
Real PCEP-30-01 Exam Dumps - Good For Certified Entry-Level Python Programmer (PCEP) Exam Learning

Add a Comment

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