ACtE03 · Chapter 3Programming & Applications🏛️ Past Licensure QuestionID: 4ffaa2a6
Which of the following CANNOT be used as a user-defined identifier in C/C++?
Which of the following CANNOT be used as a user-defined identifier in C/C++?
Multiple Choice Options
- A✓ Correct Option
while
- B
power
- C
max_value
- D
var123
Detailed Technical Solution & Explanation
In C and C++, reserved keywords (such as while, for, int, return) have predefined syntactical meanings and cannot be repurposed as user-defined variable, function, or class identifiers.
Option Analysis:
•
Option A (while): Correct. It is a reserved control-flow keyword in C/C++.
•
Option B (power): Valid identifier; starts with a letter and consists of alphanumeric characters.
•
Option C (max_value): Valid identifier containing an underscore.
•
Option D (var123): Valid identifier starting with a letter followed by digits.
Reference: Demo2 · Set 2NEC Licensure Syllabus