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

Page 21 of 99

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

  1. 0
  2. 0.2
  3. 0.0
  4. 0.4

Answer(s): B



An operator able to check whether two values are not equal is coded as:

  1. <>
  2. !=
  3. =/=
  4. not ==

Answer(s): B



The result of the following addition:
123 + 0.0

  1. cannot be evaluated
  2. is equal to 123
  3. is equal to 123.0

Answer(s): C



What will be the output of the following code snippet?
print(3 / 5)

  1. None of the above.
  2. 0
  3. 0.6
  4. 6/10

Answer(s): C






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

PCEP-30-02 Discussions & Posts