PCEP-30-02 Exam QuestionsBrowse all questions from this exam

PCEP-30-02 Exam - Question 194


What is the expected output of the following code?

Show Answer
Correct Answer:

Discussion

2 comments
Sign in to comment
akumoOption: A
Mar 20, 2025

A. ace

Knight82Option: A
Apr 28, 2025

It is ace because of the following: in the function(data) ....[::2] [start nothing, stop nothing, step 2. So, we begin at a and count to the right 2 times from a to d is 1 and d to e is two. so we record ac. we continue to the right twice c to d is 1 and d to e is 2 so we record ace. That is our answer.