Quiz on C++ Basic Syntax



1. What is the correct syntax to include a header file in C++?
2. Which of the following is a valid main function in C++?
3. How do you define a constant variable in C++?
4. Which operator is used to access members of a class in C++?
5. What is the purpose of the return statement in C++?

Advertisements