BlackFriday 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 8 Question 22 Discussion

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

Elmer
2 months ago
I think the answer is C) It prints: 4321 because of the order of operations.
upvoted 0 times
...
Louvenia
2 months ago
But if you look closely at the code, it should print 432.
upvoted 0 times
...
Madonna
2 months ago
I disagree, I believe the answer is B) It prints: 321.
upvoted 0 times
...
Jade
3 months ago
Ooh, this is a tough one. I'll have to go with A - '432'. But I'm kinda hoping for a plot twist, like the program printing out a secret message or something.
upvoted 0 times
...
Aide
3 months ago
Pfft, easy peasy. The answer is clearly D - '3210'. What, did they think we'd fall for those other options? *chuckles*
upvoted 0 times
...
Francine
3 months ago
Whoa, this is tricky. My money's on B - '321'. But I'm kind of hoping for a surprise, like a magic trick or something.
upvoted 0 times
Adelle
2 months ago
I'm going with C) 4321
upvoted 0 times
...
Herminia
2 months ago
I think it's A) 432
upvoted 0 times
...
...
Louvenia
3 months ago
I think the answer is A) It prints: 432.
upvoted 0 times
...
Felton
3 months ago
Hmm, looks like a fun exercise in reverse printing! I'm going to go with option C - '4321'.
upvoted 0 times
Hermila
3 months ago
I agree, the output should be: 4321
upvoted 0 times
...
Alison
3 months ago
I believe it prints: 4321
upvoted 0 times
...
Elliot
3 months ago
I think it prints: 4321
upvoted 0 times
...
...

Save Cancel