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

Page 16 of 99

What code would you insert instead of the comment to obtain the expected output?
Expected output:

Code:

  1. print(k[0])
  2. print(k)
  3. print(k['0'])
  4. print(k["0"])

Answer(s): A



What is the expected output of the following code?

  1. 1 5 9 13
  2. 1 2 3 4
  3. 13 14 15 16
  4. 4 8 12 16

Answer(s): D



What is the expected output of the following code?

  1. The code is erroneous.
  2. 2
  3. 1
  4. 0

Answer(s): A



What is the expected output of the following code?

  1. [2]
  2. [3, 4, 5]
  3. The program will cause an error.
  4. [2, 3, 4, 5]

Answer(s): B






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

PCEP-30-02 Discussions & Posts