Cyber Monday 2024! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

C++ Institute Exam CPA-21-02 Topic 1 Question 11 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 11
Topic #: 1
[All CPA-21-02 Questions]

What is the expected output of the following program?

Show Suggested Answer Hide Answer
Suggested Answer: B

Contribute your Thoughts:

Sherell
5 months ago
I can see why you think that, but I still believe it will be C) It prints: 4321.
upvoted 0 times
...
Kimbery
6 months ago
I think Bambi is correct, the output will be 321.
upvoted 0 times
...
Bambi
6 months ago
But don't you see that the loop is in reverse order, so the output should be 321?
upvoted 0 times
...
Teri
6 months ago
I disagree, I believe the answer is C) It prints: 4321.
upvoted 0 times
...
Bambi
6 months ago
I think the answer is B) It prints: 321.
upvoted 0 times
...
Zana
6 months ago
Hmm, that makes sense. Thanks for explaining.
upvoted 0 times
...
Tamra
6 months ago
I agree with Janessa, the output should be 321.
upvoted 0 times
...
Janessa
6 months ago
Because the program reverses the input array.
upvoted 0 times
...
Zana
7 months ago
Why do you think it's 321?
upvoted 0 times
...
Janessa
7 months ago
I believe it's 321.
upvoted 0 times
...
Zana
7 months ago
I think the expected output is 4321.
upvoted 0 times
...

Save Cancel