Question
lnthe above equations Fe Force (N), m mass (Ke·a·acceleration (m/s, k v-velocity (mat t-time Qs (12 points) State whether the following are valid identifiers (variable names, function names etc.J. n they are invalid names state why? If valid state if they are mnemonic names Note: there are 4 requirements, set by compiler/assembler for identifiers (·variable used by programmer), 1. it cannot be Css keyword? 2 lt cannot have a special character or blanik space. Underscore is permitted 3. it must begin with an alphabet or an underscore. 4 The maximum number of characters in an identifier is 1024 a Power b. Density cm12345 d newamp e 1234 1 abcd E total h tengent 1absval Computed a2 b2
Explanation / Answer
Except c, e, k remaining all are valid variable names.
c) m1234$ --> contains a special symbol $
e) 123 --> should not start with number
k) a2 b2 --> should not contain space between the variable
**Comment for any further queries