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

Page 4 of 99

Which of the following sentences is true?

  1. str1 and str2 are different (but equal) strings.
  2. str1 and str2 are different names of the same strings.
  3. str1 is longer than str2
  4. str2 is longer than str1

Answer(s): B



The fact that tuples belong to sequence types means:

  1. they can be modified using the del instruction
  2. they can be extended using the .append() method
  3. they are actually lists
  4. they can be indexed and sliced like lists

Answer(s): D



What is the output of the following code?

  1. [1, 1, 1]
  2. [3, -1, 1]
  3. [3, 1, 1]

Answer(s): C



What is the expected output of the following code?

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

Answer(s): D






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

PCEP-30-02 Discussions & Posts