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

Page 5 of 99

What is the expected output of the following code?

  1. ('Peter': 30, 'Paul': 31)
  2. ('Peter', 'Paul')
  3. ['Peter': 30, 'Paul': 31]
  4. ['Peter', 'Paul']

Answer(s): D



What is the output of the following snippet?

  1. 2
  2. 4
  3. The snippet is erroneous (invalid syntax)

Answer(s): B



What is the expected output of the following code?

  1. (4)
  2. 4
  3. (4,)
  4. 44

Answer(s): B



What is the output of the following snippet?

  1. [1, 1, 2, 2]
  2. [1, 1, 1, 2]
  3. [1, 2, 1, 2]
  4. [1, 2, 2, 2]

Answer(s): B






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

PCEP-30-02 Discussions & Posts