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

Save Cancel