Multiple Choice
Assume the following variables have been declared as shown and given values elsewhere:
double a, b, c;
The discriminant of a quadratic equation is defined to be: Which of the following statements will assign the correct value to discriminant?
A) double discriminant = Math.sqrt(b * b - 4 * a * c) ;
B) double discriminant = Math.sqrt(b * b) - 4 * a * c;
C) double discriminant = Math.sqrt(b * b) - Math.sqrt(4 * a * c) ;
D) double discriminant = Math.sqrt(b2 - 4ac)
Correct Answer:

Verified
Correct Answer:
Verified
Q5: Which statement is true about variable names
Q6: What is the value of Math.abs(-2)?<br>A)-2<br>B)0<br>C)2<br>D)4
Q7: Assume the following variable has been declared
Q8: Which of the following options declares a
Q9: Which is the Java equivalent of the
Q11: Which is the Java equivalent of the
Q12: What is the output of the following
Q13: What is the output of the following
Q14: What is the result of the following
Q15: Assume the following variables have been declared