Explanation & Hints:
Here are the true statements from the options provided:
- The “C” language compiler is case-sensitive – This is true. In C, identifiers (including variable names, function names, etc.) are case-sensitive, meaning that
Variable , variable , and VARIABLE are considered different identifiers.
- The reserved keywords cannot be used as variable names – This is true. In C, reserved keywords, such as
int , return , and for , are part of the language syntax and cannot be used as variable names because they have predefined meanings in the language.
- You can write multiline comments in the “C” language – This is true. In C, multiline comments start with
/* and end with */ , allowing comments to span multiple lines.
- The decimal value of 012 (octal) is 10 – This is true. In C, numbers starting with a zero are considered octal (base 8). Therefore,
012 in octal is equal to 10 in decimal.
- The decimal value of 0x11 (hexadecimal) is 16 – This is false.
0x11 in hexadecimal actually equals 17 in decimal. The correct computation is 1×161+1×160=16+1=171×161+1×160=16+1=17.
- Nesting comments is a recommended practice – This is false. In C, nesting comments is not supported by all compilers and can lead to errors or undefined behavior if attempted. Therefore, it is not a recommended practice.
Thus, the true statements are the first four options. |