C++ Multiple Choice Questions
MCQ Based on Basics of C++
1] #include
Which of the following is the correct syntax to add the header file in the C++ program?
- #include
- #include "userdefined.h"
- "userdefined.h"
- Both A and B
Answer: D
Explanation: To include the herder files in the C++ program user can use any of the following given syntax.
Or
2] Which of the following is the correct syntax to print the message in C++ language?
- cout