Deal of The Day! 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 3 Question 34 Discussion

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

Onita
29 days ago
I think the correct answer is D) It prints: 3210 based on the logic of the program
upvoted 0 times
...
Jettie
1 months ago
I'm leaning towards C) It prints: 4321 because of the order of operations
upvoted 0 times
...
Louann
1 months ago
I disagree, I believe the answer is B) It prints: 321
upvoted 0 times
...
Maurine
2 months ago
Haha, I bet the answer is D) It prints: 3210. Who writes programs that reverse the order of digits anyway? What a silly question!
upvoted 0 times
Carmela
23 days ago
I believe it is C) It prints: 4321
upvoted 0 times
...
Chuck
1 months ago
I think the answer is A) It prints: 432
upvoted 0 times
...
...
Fernanda
2 months ago
I think the answer is B) It prints: 321. The program is only reversing the first three digits, not the entire number.
upvoted 0 times
Lashaunda
28 days ago
Yes, the program is only reversing the first three digits.
upvoted 0 times
...
Lino
1 months ago
I agree with you, the answer is B) It prints: 321.
upvoted 0 times
...
...
Ming
2 months ago
The correct answer is C) It prints: 4321. The program is simply reversing the order of the digits, so the output should be 4321.
upvoted 0 times
Willis
1 months ago
Oh, I see. Thanks for clarifying!
upvoted 0 times
...
Asuncion
1 months ago
No, the correct answer is C) It prints: 4321.
upvoted 0 times
...
Rebecka
1 months ago
I thought it would print 321.
upvoted 0 times
...
...
Delmy
2 months ago
I think the answer is A) It prints: 432
upvoted 0 times
...

Save Cancel