Multiple choice .net c-sharp

A String literal is a:

  1. only contains one character

  2. contains numbers rather than letters

  3. sequence of characters in double quotation marks

  4. contains exactly its variable name and nothing else

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

A string literal in C# is a sequence of characters enclosed in double quotation marks, like "Hello". It can contain any characters (letters, numbers, symbols) and can be of any length, not just one character.