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

Question #6 (Topic: Topic 1, Data Aggregates )
Take a look at the snippet, and choose the true statements: (Choose two.)
A. nums is longer than vals B. nums and vals are of the same length C. vals is longer than nums D. nums and vals refer to the same list
Answer: BD
Question #7 (Topic: Topic 1, Data Aggregates )
What is the output of the following snippet?
A. 12 B. (2, 1) C. (1, 2) D. 21
Answer: D
Question #8 (Topic: Topic 1, Data Aggregates )
What is the expected output of the following code?
print(list('hello'))
A. hello B. [h, e, l, l, o] C. ['h', 'e', 'l', 'l', 'o'] D. ['h' 'e' 'l' 'l' 'o'] E. None of the above.
Answer: C
Question #9 (Topic: Topic 1, Data Aggregates )
What will be the output of the following code snippet?
A. [1, 3, 5, 7, 9] B. [8, 9] C. [1, 2, 3] D. [1, 2]
Answer: A
Question #10 (Topic: Topic 1, Data Aggregates )
What will be the output of the following code snippet?
A. 3 B. 2 C. 4 D. 1
Answer: C
Download Exam
Page: 2 / 84
Total 418 questions