Quiz Topic 1

Question 1: Which symbol is used to indicate a single-line comment in C++?

Question 2: What is the correct syntax for a multi-line comment in C++?

Question 3: What is the correct way to initialize a constant variable in C++?

Question 4: What is the purpose of using constants in C++?

Question 5: In C++, which of the following is not a valid variable name?

Question 6: Which data type is used to store whole numbers in C++?

Question 7: Which directive is used to include a header file in C++?

Question 8: What is the purpose of a header file in C++?

Question 9: If a program compiles successfully but produces unexpected results, what type of error is likely present?

Question 10: Which phase of the program execution detects syntax errors in C++?