PCEP 30 02 PCEP Certified Entry Level Python Programmer Exam Questions & Answers

Practice 26 free PCEP 30 02 PCEP Certified Entry Level Python Programmer exam questions with answers and community-discussed explanations. Each question has its own page where you can reveal the correct answer and debate it in the comments.

All 26 questions

  1. Q1 Assuming that following assignment has been successfully executed ?List1 = [1,2,3,4,5]Which of the following expressions evaluate to False ?
  2. Q2 What is true about tuples ?
  3. Q3 What is the expected output of the following code?tup = (1, 2, 3)tup[1] = 4print(tup)
  4. Q4 What does the given code snippet give as output ?xy = 40yx = 400print(xy != yx)
  5. Q5 What will be the output of the following code ?num = 3//2 *3 if num > 3:    print("Hello World")else:    print("Something…
  6. Q6 A keyword is a word that-
  7. Q7 What is the output of the following code snippet? city1 = "New York"city2 = "New York"print(city1 is city2)
  8. Q8 What is the expected output of the following code ?dict = {"Dalserver":12,"Ausserver":14,"Londonserver":16}for i in dict.items():    print(i[0],end="")
  9. Q9 What will be the result of the following expression ?2//3 ** 2
  10. Q10 What is printed by the given code snippet ?def num(x = 1, y = 3):   x = x + y   y +=…
  11. Q11 What is the output:print(1 // 2)print(6. // -4)
  12. Q12 What will be the output of the code after Execution ?x = 15y = 10z = 5if x > y:    if…
  13. Q13 Which of the following is not of type tuple?
  14. Q14 Please organize the given code boxes to create a conditional statement that ensures a specific instruction is executed when the value of…
  15. Q15 What is the output of the following code snippet?def cars_disp(new, clist=[]):   clist.append(new)   return clist top_cars = cars_disp("Pagani",["Ferrari","Aston", "Lamborghini"])print(cars_disp("McLaren", top_cars))
  16. Q16 What is the output of the following code snippet?List = ['p','q']List.append('r')List.append([10,20,30])List.extend([200,500])print(List)
  17. Q17 What is the output of the following code snippet?d1 = {'Age': 27, 'Name': 'Holding'}d2 = {'Name': 'Holding', 'Age': 27}print(d1 == d2)
  18. Q18 What is the output of the following code snippet?inp = {'Course':'PCEP','pass_percent':80,}temp = {'Course':'PCEP','pass_percent':70,'tech':'Python'}inp.update(temp)print(inp)
  19. Q19 What is the output of the below code snippet?var = 25.6var = int(var)print(var)
  20. Q20 What is the output of the following snippet code?'''There are 4 membersin my family'''print("I love coding")
  21. Q21 What is the output of the following code snippet?i = 0while i < 2:   i += 1   if i == 1:   …
  22. Q22 Which expression would evaluate to 3?
  23. Q23 Octal has the following base:
  24. Q24 How many asterisks (*) does the code output to the screen ?i = 0 while i !=0:     i//=2     print("**",end="")else:   …
  25. Q25 What will be the output of the following code snippet when the user enters 'secret'?while True:   code = input("What is the secret…
  26. Q26 What will be the output of the following code ?l = [1,2,3,4,5]i = 0while i < len(l):    if l[i] == 3: …

More Python Institute certifications

Preparing For

Your Certification?

255+ certifications
Detailed explanations
Free PDF samples

Has All The Questions You Need