Олимпиадный тренинг

Задача . 34753


Задача

Темы:
Consider the following code segment.
 
double a = 1.1;
double b = 1.2;
if ((a + b) * (a - b) != (a * a) - (b * b))
{
    System.out.println("Mathematical error!");
}

Which of the following best describes why the phrase "Mathematical error!" would be printed? (Remember that mathematically (a+b)∗(a−b)=a2−b2.)
A) Precedence rules make the if condition true.
B) Associativity rules make the if condition true.
C) Roundoff error makes the if condition true.
D) Overflow makes the if condition true.
E) A compiler bug or hardware error has occurred.
 

time 1000 ms
memory 32 Mb
Правила оформления программ и список ошибок при автоматической проверке задач

Статистика успешных решений по компиляторам
Комментарий учителя