Question 73

Which of the following cannot be used as a valid identifier in Python?

  1. A1st Name
  2. BName1
  3. CName_1
  4. DFirstName
Show answerHide answer

Correct answer: (A) 1st Name

Explanation

Python identifiers cannot start with a digit or contain spaces, so "1st Name" is invalid.

From DSSSB TGT Computer Science Practice Set 2

This is question 73 of DSSSB TGT Computer Science Practice Set 2. 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.