Free PCEP-30-02 Exam Braindumps (page: 26)

Page 25 of 99

What is the expected output of the following code?

  1. 8
  2. 7.0
  3. 8.0
  4. 9.0

Answer(s): C



Consider the following code.

The value eventually assigned to x is equal to:

  1. 1
  2. 0
  3. True
  4. False

Answer(s): C



What is the output of the following code?

  1. The program will cause an error.
  2. False
  3. None
  4. True

Answer(s): D



What is the expected output of the following code?
x = 1 + 1 // 2 + 1 / 2 + 2
print(x)

  1. 3
  2. 4.0
  3. 4
  4. 3.5

Answer(s): D






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

PCEP-30-02 Discussions & Posts