which of the following is a correct assignment statement? double b = -42c; double a = 3.28 double d = -12.03;

which of the following is a correct assignment statement? double b = -42c; double a = 3.28 double d = -12.03;
Answer
Brief Explanations:
In Java (assuming a Java - like context as double is a Java data type), an assignment statement should follow the correct syntax. In the first option double b = -42c;, c is an undefined variable and this is a syntax error. In the second option double a = 3.28, it is missing a semicolon at the end which makes it a syntax - incorrect statement in Java. The third option double d = -12.03; follows the correct syntax for declaring a double variable and assigning a value to it.
Answer:
double d = -12.03;