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

Page 2 of 99

What is the expected output of the following code?

  1. ['Peter', 404, 3.03, 'Wellert', 33.3]
  2. None of the above.
  3. [404, 3.03]
  4. ['Peter', 'Wellert']

Answer(s): C



Take a look at the snippet, and choose the true statements: (Choose two.)

  1. nums is longer than vals
  2. nums and vals are of the same length
  3. vals is longer than nums
  4. nums and vals refer to the same list

Answer(s): B,D



What is the output of the following snippet?

  1. 12
  2. (2, 1)
  3. (1, 2)
  4. 21

Answer(s): D



What is the expected output of the following code?
print(list('hello'))

  1. hello
  2. [h, e, l, l, o]
  3. ['h', 'e', 'l', 'l', 'o']
  4. ['h' 'e' 'l' 'l' 'o']
  5. None of the above.

Answer(s): C






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

PCEP-30-02 Discussions & Posts