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 1 Question 16 Discussion

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

Which code lines inserted independently instead of the comment will make the following program work correctly? (Choose three.)

Show Suggested Answer Hide Answer
Suggested Answer: A, B

Contribute your Thoughts:

Honey
3 months ago
Hey, where's the option for 'All of the above'? Seems like a trick question to me.
upvoted 0 times
Chana
2 months ago
User 1
upvoted 0 times
...
Tiffiny
2 months ago
User 2
upvoted 0 times
...
Ellsworth
3 months ago
User 1
upvoted 0 times
...
...
Wenona
3 months ago
I think A, C, and D are the correct choices. main() can take different parameter formats.
upvoted 0 times
...
Cary
3 months ago
B and D are wrong. main() should return an integer, not void.
upvoted 0 times
...
Alpha
3 months ago
Definitely A and C. The program needs a valid main function signature to run.
upvoted 0 times
Gail
3 months ago
B) int main (int c, char *v[])
upvoted 0 times
...
Janessa
3 months ago
C) int main
upvoted 0 times
...
Fletcher
3 months ago
A) int main (int argc, char *argv[])
upvoted 0 times
...
...

Save Cancel