New Year Sale ! 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 8 Question 32 Discussion

Actual exam question for C++ Institute's CPA-21-02 exam
Question #: 32
Topic #: 8
[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:

Van
4 days ago
Hmm, looks like a job for a calculator. I'll have to go with D, it prints 3210.
upvoted 0 times
...
Cristal
4 days ago
This reminds me of that time I tried to count sheep backwards and fell asleep. I'm sticking with A, it prints 432.
upvoted 0 times
...
Lashawn
7 days ago
I think the answer is C) It prints: 4321 because the program reverses the array elements.
upvoted 0 times
...
Miesha
10 days ago
But the program starts from the end of the array, so it should be A.
upvoted 0 times
...
Lillian
13 days ago
What kind of backward counting is this? I'm going with option B, it prints 321.
upvoted 0 times
Alfred
7 days ago
I think it prints 321 too.
upvoted 0 times
...
...
Jovita
23 days ago
I disagree, I believe the answer is B) It prints: 321.
upvoted 0 times
...
Lorean
1 months ago
This is easy! It's clearly option C, it prints 4321.
upvoted 0 times
Dortha
2 days ago
User 4: Option C it is then, let's see if we're right.
upvoted 0 times
...
Lottie
10 days ago
User 3: I'm not sure, but I'll go with option C as well.
upvoted 0 times
...
Malcolm
11 days ago
User 2: Yeah, I agree. Option C is the correct answer.
upvoted 0 times
...
Stephane
16 days ago
User 1: I think it prints: 4321
upvoted 0 times
...
...
Miesha
1 months ago
I think the answer is A) It prints: 432.
upvoted 0 times
...

Save Cancel