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

Задача . 35993


Задача

Темы:
Consider the following code segment
if (n != 0 && x / n > 100)
statement1;
else
statement2;

If n is of type int and has a value of 0 when the segment is executed, what will
happen?

(A) An ArithmeticException will be thrown.
(B) A syntax error will occur.
(C) statement1, but not statement2, will be executed.
(D) statement2, but not statement1, will be executed.
(E) Neither statement1 nor statement2 will be executed; control will pass to the
first statement following the if statement.

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

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