COMPUTER SCIENCE AND ENGINEERING
ALGORITHMS
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
not too long
|
|
have a sensible name
|
|
not start with a number
|
|
not start with a capital letter
|
|
all of the above
|
Detailed explanation-1: -The variable identifier is the name of the variable to access on the specified DCO object. If a variable does not exist, the contents are considered to be empty. If a variable name is not specified, then the “TEXT” variable of the object is accessed, making X equivalent to X. TEXT .
Detailed explanation-2: -Rules for naming identifiers A valid identifier can have letters (both uppercase and lowercase letters), digits and underscores. The first letter of an identifier should be either a letter or an underscore. You cannot use keywords like int, while etc. as identifiers. There is no rule on how long an identifier can be.
Detailed explanation-3: -An identifier can only have alphanumeric characters (a – z, A – Z, 0 – 9) and underscore ( ) The first character of an identifier can only contain alphabet (a – z, A – Z) or underscore ( )
Detailed explanation-4: -Identifiers are used for the naming of variables, functions, and arrays.