Which of the following identifier names are invalid and why?
Serial_no.
Invalid - Contains a special symbol '.' (dot) which is not allowed in identifiers.
1st_Room
Invalid - Starts with a digit '1'. Identifiers cannot begin with a digit.
Hundred$
Invalid - Contains a special symbol '$' which is not allowed in identifiers.
Total_Marks
Valid - Follows all naming rules: starts with an uppercase letter and contains only letters and underscore.
Total_Marks
Valid - Same as (iv), follows all naming rules.
total-Marks
Invalid - Contains a special symbol '-' (hyphen) which is not allowed in identifiers.
_Percentage
Valid - Starts with an underscore (_) which is allowed, followed by letters.
True
Invalid - 'True' is a keyword/reserved word in Python and cannot be used as an identifier.
Explanation
According to the textbook context, Python identifiers must follow specific rules: (1) They must begin with an uppercase/lowercase letter or underscore, and cannot start with a digit; (2) They cannot contain special symbols like !, @, #, $, %, etc.; (3) They should not be keywords/reserved words. Based on these rules, identifiers (i), (ii), (iii), (vi), and (viii) are invalid for the reasons stated above.