Python Institute PCEP-30-02 - PCEP - Certified Entry-Level Python Programmer Exam

Question #11 (Topic: Topic 1, Data Aggregates )
What is the output of the following snippet?
A. two B. one C. (‘one’, ‘two’, ‘three’) D. three
Answer: A
Question #12 (Topic: Topic 1, Data Aggregates )
What is the expected output of the following code?
A. [3, 1, 25, 5, 20, 5, 4] B. [1, 3, 4, 5, 20, 5, 25] C. [3, 5, 20, 5, 25, 1, 3] D. [1, 3, 3, 4, 5, 5, 20, 25] E. [3, 4, 5, 20, 5, 25, 1, 3]
Answer: C
Question #13 (Topic: Topic 1, Data Aggregates )
Which of the following sentences is true?
A. str1 and str2 are different (but equal) strings. B. str1 and str2 are different names of the same strings. C. str1 is longer than str2 D. str2 is longer than str1
Answer: A
Question #14 (Topic: Topic 1, Data Aggregates )
The fact that tuples belong to sequence types means:
A. they can be modified using the del instruction B. they can be extended using the .append() method C. they are actually lists D. they can be indexed and sliced like lists
Answer: D
Question #15 (Topic: Topic 1, Data Aggregates )
What is the output of the following code?
A. [1, 1, 1] B. [3, -1, 1] C. [3, 1, 1]
Answer: C
Download Exam
Page: 3 / 97
Total 481 questions