Free Python Institute PCEP-30-02 Exam Braindumps (page: 13)

Which function does in-place reversal of objects in a list?

  1. list.sort([func])
  2. list.pop(obj=list[-1])
  3. list.remove(obj)
  4. list.reverse()

Answer(s): D



What is the output of the following snippet?

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

Answer(s): C



What snippet would you insert in the line indicated below to print The highest number is 10 and the lowest number is 1. to the monitor?

  1. None of the above.



Answer(s): D



What is the output of the following snippet?

  1. ['Mary', 'had', 'a', 'little', 'lamb']
  2. ['Mary', 'had', 'a', 'lamb']
  3. ['Mary', 'had', 'a', 'ramb']
  4. No output, the snippet is erroneous

Answer(s): D



Viewing page 13 of 99
Viewing questions 49 - 52 out of 450 questions



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

PCEP-30-02 Exam Discussions & Posts