Check sibling questions

Which of the following is not a valid identifier?

(a) Mybook

(b) @book

(c) _book

(d) book@

 

Answer:

Checking the options:

  • (a) Mybook - It is a valid identifier   
  • (b) @book - It is not a valid identifier since it starts with a special character.   
  • (c) _book - It is a valid identifier    
  • (d) book@ - It is not a valid identifier since it contains a special character.   

So, the correct answer is (b) and (d).

  1. Computer Science - Class 11
  2. Chapter 5 Class 11 - Getting started with python

About the Author

Davneet Singh

Davneet Singh has done his B.Tech from Indian Institute of Technology, Kanpur. He has been teaching from the past 14 years. He provides courses for Maths, Science and Computer Science at Teachoo