BlackFriday 2024! Hurry Up, Grab the Special Discount - Save 25%
- Ends In
00:00:00
Coupon code:
SAVE25
X
Welcome to Pass4Success
Login
|
Sign up
-
Free
Preparation Discussions
Mail Us
support@pass4success.com
Location
US
MENU
Home
Popular vendors
Salesforce
Microsoft
Nutanix
Amazon
Google
CompTIA
SAP
VMware
Fortinet
PeopleCert
Eccouncil
HP
Palo Alto Networks
Adobe
ServiceNow
Dell EMC
CheckPoint
Linux Foundation
Discount Deals
New
About
Contact
Login
Sign up
Home
Discussions
C++ Institute Discussions
Exam CPA-21-02 Topic 1 Question 11 Discussion
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?
A
It prints: 432
B
It prints: 321
C
It prints: 4321
D
It prints: 3210
Show Suggested Answer
Hide Answer
Suggested Answer:
B
by
Mozell
at
Mar 17, 2024, 12:25 PM
Limited Time Offer
25%
Off
Get Premium CPA-21-02 Questions as Interactive Web-Based Practice Test or PDF
Contribute your Thoughts:
Submit
Cancel
Sherell
4 months ago
I can see why you think that, but I still believe it will be C) It prints: 4321.
upvoted
0
times
...
Kimbery
5 months ago
I think Bambi is correct, the output will be 321.
upvoted
0
times
...
Bambi
5 months ago
But don't you see that the loop is in reverse order, so the output should be 321?
upvoted
0
times
...
Teri
5 months ago
I disagree, I believe the answer is C) It prints: 4321.
upvoted
0
times
...
Bambi
5 months ago
I think the answer is B) It prints: 321.
upvoted
0
times
...
Zana
5 months ago
Hmm, that makes sense. Thanks for explaining.
upvoted
0
times
...
Tamra
5 months ago
I agree with Janessa, the output should be 321.
upvoted
0
times
...
Janessa
5 months ago
Because the program reverses the input array.
upvoted
0
times
...
Zana
6 months ago
Why do you think it's 321?
upvoted
0
times
...
Janessa
6 months ago
I believe it's 321.
upvoted
0
times
...
Zana
6 months ago
I think the expected output is 4321.
upvoted
0
times
...
Log in to Pass4Success
×
Sign in:
Forgot my password
Log in
Report Comment
×
Is the comment made by
USERNAME
spam or abusive?
Commenting
×
In order to participate in the comments you need to be logged-in.
You can
sign-up
or
login
Save
Cancel
Sherell
4 months agoKimbery
5 months agoBambi
5 months agoTeri
5 months agoBambi
5 months agoZana
5 months agoTamra
5 months agoJanessa
5 months agoZana
6 months agoJanessa
6 months agoZana
6 months ago