Multiple choice technology programming languages

The following statement is valid. double price = 7,450.98

  1. True

  2. False

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

The statement is invalid because using a comma within a numeric literal is syntactically incorrect in C#. The compiler interprets the comma as a syntax error rather than a thousands separator, making the statement fail to compile.