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

Page 11 of 99

Which one of the lines should you put in the snippet below to match the expected output?
Expected output:

Code:

  1. sorted(list)
  2. sort(list)
  3. list.sort()
  4. list.sorted()

Answer(s): C



Which of the following sentences are true about the code? (Choose two.)

  1. nums and vals are different lists
  2. vals is longer than nums
  3. nums and vals are different names of the same list
  4. nums and vals have the same length

Answer(s): C,D



The second assignment:

  1. extends the list
  2. doesn't change the list's length
  3. shortens the list

Answer(s): B



What is the expected output of the following code?

  1. efg
  2. abc
  3. def
  4. The code is erroneous.
  5. abcde
  6. None of the above.

Answer(s): A



Page 11 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