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

Page 12 of 99

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



Page 12 of 99



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

Likhaya commented on January 08, 2025
I'm impressed by this website
Anonymous
upvote

BT commented on December 18, 2024
test PCEP-30-02 exam
VIET NAM
upvote

Mike commented on November 06, 2024
Very good website
Anonymous
upvote

joyce Mensah commented on October 28, 2023
I have just purchase the python fundamentals dump, i will see how it goes
Anonymous
upvote