1.
Q16: Click on the if-statement that must be TRUE in order to execute the line
e = 3;
in the following code.if (x > y) { if (a > b) e = 1; else e = 2; } else if (a < b) e = 3; else e = 4;
int alpha = 2, beta = 1, delta = 3, eta = 0, gamma = 0;
double omega = 2.5, theta = -1.3, kappa = 3.0, lambda = 0.0, rho = 0.0;
eta
is .if (omega > kappa)
{
if (alpha > delta)
eta = 5;
else
eta = 4;
}
else
if (alpha < delta)
eta = 3;
else
eta = 2;
a
is and the value in variable b
is .int a = -5;
int b = 5;
if (a < 0)
if (b > 0)
a = b;
else
a = b + 10;
b = b + 3;
x
is and the value in variable y
is .int x = -8;
int y = 10;
if (x < 0)
{
if (y < 0)
x = y;
}
else
x = y + 10;
y = x + y;