Consider the following code segments.
double s = Math.sqrt(-100);
int x = 0, y = 1000; int average = y%x;
double count = 0, sum = 1000; double average = sum%count;
double num = Math.pow(-1, -1);
int count = 0, sum = 1000; int average = sum/count;
Which of these would throw an ArithmeticException?