Which of the following type of constant is ControlChars.NewLine constant?

Character
Pure
Intrinsic
Invariable

The correct answer is: C. Intrinsic

An intrinsic constant is a constant that is defined by the .NET Framework. It is a value that is always the same, regardless of the program or the environment in which it is used.

The ControlChars.NewLine constant is an intrinsic constant that represents the newline character. The newline character is a special character that is used to indicate the end of a line of text.

The other options are incorrect because:

  • A character constant is a constant that represents a single character.
  • A pure constant is a constant that is defined by the program itself.
  • An invariable constant is a constant that cannot be changed after it has been defined.
Exit mobile version