MENU
Question -

What is the difference between a keyword and an identifier ?



Answer -

Keyword is a special word that has a special meaning and purpose. Keywords are reserved and are few. For example : if, else, elif etc.
Identifier is the user-defined name given to a part of a program like variable, object, functions etc. Identifiers are not reserverd. These are defined by the user but they can have letters, digits and a symbols underscore. They must begin with either a letter or underscore. For example : chess, _ch, etc.

Comment(S)

Show all Coment

Leave a Comment

Free - Previous Years Question Papers
Any questions? Ask us!
×