What is the expected output of the following code?
A. (2, 1, 1)
B. (1, 1, 1)
C. (2, 2, 2)
D. The code is erroneous.
Which one of the lines should you put in the snippet below to match the expected output? Expected output:
Code:
A. sorted(list)
B. sort(list)
C. list.sort()
D. list.sorted()
Which of the following sentences are true about the code? (Choose two.)
A. nums and vals are different lists
B. vals is longer than nums
C. nums and vals are different names of the same list
D. nums and vals have the same length
The second assignment:
A. extends the list
B. doesn't change the list's length
C. shortens the list
What is the expected output of the following code?
A. efg
B. abc
C. def
D. The code is erroneous.
E. abcde
F. None of the above.
Which function does in-place reversal of objects in a list?
A. list.sort([func])
B. list.pop(obj=list[-1])
C. list.remove(obj)
D. list.reverse()
What is the output of the following snippet?
A. [1, 2, 3]
B. [3, 3, 3]
C. [3, 2, 1]
D. [1, 1, 1]
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?
A. Option A
B. Option B
C. Option C
D. Option D
What is the output of the following snippet?
A. ['Mary', 'had', 'a', 'little', 'lamb']
B. ['Mary', 'had', 'a', 'lamb']
C. ['Mary', 'had', 'a', 'ramb']
D. No output, the snippet is erroneous
What is the expected output of the following code?
A. Paul
B. Mary
C. The code is erroneous.
D. None of the above.
E. Peter
Nowadays, the certification exams become more and more important and required by more and more enterprises when applying for a job. But how to prepare for the exam effectively? How to prepare for the exam in a short time with less efforts? How to get a ideal result and how to find the most reliable resources? Here on Vcedump.com, you will find all the answers. Vcedump.com provide not only Python Institute exam questions, answers and explanations but also complete assistance on your exam preparation and certification application. If you are confused on your PCEP-30-02 exam preparations and Python Institute certification application, do not hesitate to visit our Vcedump.com to find your solutions here.