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

Page 32 of 99

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

  1. ==
  2. ===
  3. is
  4. =

Answer(s): A



What will be the output of the following snippet?

  1. 0 0
  2. 1 1
  3. 0 1
  4. 1 0

Answer(s): D



What is the expected output of the following code?

  1. 2
  2. 0
  3. 1
  4. 3

Answer(s): A



Consider the following code.
x = float('23.42')

Which of the following expressions will evaluate to 2?

  1. int(x) + False
  2. bool(x) + True
  3. str(x)
  4. bool(x)

Answer(s): B






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

PCEP-30-02 Discussions & Posts