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

PCEP-30-02 Exam - Question 165


You have the following file.

You run the file by executing the following command in the terminal. python index.py 42 3

What is the expected output?

Show Answer
Correct Answer:

Discussion

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

C. 423

Knight82
Apr 28, 2025

ok I see that you are very good at providing answers, but lack explanation. Anybody can do it that way, but to learn and do it right is another.

Knight82Option: C
Apr 28, 2025

It is 423 is because print(argument vector[1](42 +(concatenate) argumentvector[2](3)= 423 is the answer. argument vector 0 or argv[0] is the source file itself index.pv.