How Did You Do?

  1.  
  1. Operator
  2. Literal
  3. Literal
  4. Identifier
  5. Literal
  6. Literal
  7. Operator
  8. Operator
  9. Identifier
  10. Identifier
  1.  
  1. Valid
  2. Invalid – the only non-alphanumeric character allowed in identifiers is underscore (_)
  3. Valid
  4. Invalid – the first character of an identifier cannot be a number
  5. Valid
  6. Invalid
  7. Valid
  8. Valid
  9. Invalid – identifiers cannot be given the name of a built-in operator
  10. Valid

 

<< Previous: Test Your Knowledge! | Next: Arithmetic Operators >>