Computer Science, asked by meenamishra858, 8 months ago

a. Which of the following are invalid variable names and why?
(iii) percent
(iv) 123
(ii) S-num
(0) PaidInterest
(v) dit km
(vi) INPUT
(viii) book$
(vii) END
(ix) ia"
(x) 2ab

please friends help me to answer this question!
please please please ​

Answers

Answered by anjumanyasmin
1

From the given question the correct answer is

  1. S-name (other than underscore any other special symbol is not allowed)
  2. dit km (space not allowed in  variable)
  3. 2ab (must not begin with a digit)
  4. book$ (In variable name, no special characters allowed other than underscore (_).)
  5. ia"  ( In variable name, no special characters allowed other than underscore (_).)
Similar questions