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

Page 20 of 99

Take a look at the snippet and choose the true statement:

  1. vals is longer than nums
  2. nums is longer than vals
  3. nums and vals have the same length
  4. The snippet will cause a runtime error.

Answer(s): C



What is the expected output of the following code?

  1. 3
  2. The code is erroneous.
  3. 6
  4. 7

Answer(s): C



What would you insert instead of ???, so that the program checks for even numbers?

  1. x % ‘even’ == True
  2. x % 2 == 1
  3. x % 2 == 0
  4. x % x == 0
  5. x % 1 == 2

Answer(s): C



What value will be assigned to the x variable?

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

Answer(s): B






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

PCEP-30-02 Discussions & Posts