Free Python Institute PCEP-30-02 Exam Questions

Try our Free Demo Practice Tests for Comprehensive PCEP-30-02 Exam Preparation

  • Python Institute PCEP-30-02 Exam Questions
  • Provided By: Python Institute
  • Exam: Certified Entry-Level Python Programmer
  • Certification: PCEP
  • Total Questions: 569
  • Updated On: Feb 18, 2025
  • Rated: 4.9 |
  • Online Users: 1138
Page No. 1 of 114
Add To Cart
  • Question 1
    • What will be the output of the following code?
      def get_number():
          for i in []:
              yield i
       
      print(next(get_number()))

      Answer: B
  • Question 2
    • What will be the output of the following code?
      def first(x):
              return x ** x
       
      def second(x):
              return first(x) + first(x)
       
      print(second(3))

      Answer: A
  • Question 3
    • Which of the following instruction(s) is/are corrects ways to update the value of a dictionary element under the key 'key'?


      Answer: A,D
  • Question 4
    • Assuming that the following assignment has been successfully executed:

      Which of the following expressions evaluate to True? (Select two expressions.)  


      Answer: C,D
  • Question 5
    • What will be the output of the following code snippet?
      dict1 = {'one': 1, 'two': 2, 'three': 3}
      dict2 = {'one': 1, 'two': 5, 'four': 8}
      dict3 = dict(dict1)
      dict4 = dict(dict2)
      dict3.update(dict2)
      dict4.update(dict1)
      print(dict3 == dict4)

      Answer: C
PAGE: 1 - 114
Add To Cart

© Copyrights Dumpscity 2025. All Rights Reserved

We use cookies to ensure your best experience. So we hope you are happy to receive all cookies on the Dumpscity.