English

It is not a valid identifier:

Advertisements
Advertisements

Question

It is not a valid identifier:

Options

  • name_

  • name$

  • _name

  • +name

MCQ
Advertisements

Solution

+name

Explanation:

  • An identifier cannot start with special symbols like '+'; therefore, '+name' is not a valid identifier.
  • name_, name$, and _name are valid identifiers (in Java).
shaalaa.com
  Is there an error in this question or solution?
Chapter 1: Revision of Class 9 Syllabus - Exercises [Page 43]

APPEARS IN

Rupa Pandit Computer Applications [English] Class 10 ICSE
Chapter 1 Revision of Class 9 Syllabus
Exercises | Q 1. (xx) | Page 43
Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×