Question 153Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

Which of the following is correct for Identifiers name used in Python language?

  1. AAn identifier can have underscore (_) symbol
  2. BWe must use keywords as identifier
  3. CThhere is restriction the length of an identifier
  4. DAn identifier must start with a digit
Show answerHide answer

Correct answer: (A) An identifier can have underscore (_) symbol

Explanation

Python identifiers may contain letters, digits and underscores, so _ is allowed. They cannot start with a digit, cannot be keywords, and have no length limit.

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 153 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.