Free PCEP-30-02 Exam Braindumps
PCEP - Certified Entry-Level Python Programmer Questions 131–135 (page: 28)

Updated On: 10-Feb-2026

What is the expected output of the following code?


  1. 1 | True
    2 | True
    3 | False
    4 | False

  2. 1 | True
    2 | False
    3 | False
    4 | False

  3. 1 | True
    2 | False
    3 | False
    4 | True

  4. 1 | True
    2 | False
    3 | True
    4 | False

Answer(s): B



The expression:
'mike' > 'Mike'
is

  1. erroneous
  2. true
  3. false

Answer(s): B



You are writing a Python program that evaluates an arithmetic formular.

The formular is described as b equals a multiplied by negative one, then raised to the second power, where a is the value that will be input and b is the result. a = eval(input('Enter a number for the equation: '))

Which of the following is a valid expression for the given requirement?

  1. b = (-a) ** 2
  2. b = (a-) ** 2
  3. b = (a) ** -2
  4. b = -(a) ** 2

Answer(s): A



What is the expected output of the following code?
print(2 ** 3 ** 2 ** 1)

  1. 64
  2. 16
  3. 128.0
  4. The code is erroneous.
  5. 16.0
  6. 512

Answer(s): F



Which of the following code snippets will print True to the monitor? (Choose two.)






Answer(s): A,D



Viewing page 28 of 79
Viewing questions 136 - 140 out of 481 questions


Post your Comments and Discuss Python Institute PCEP-30-02 exam prep with other Community members:

AI Tutor AI Tutor 👋 I’m here to help!