1. How would each of the following numbers be represented in E notation?
a. 3.287 × 10⁶
b. −9.7865 × 10¹²
c. 7.65491 × 10−3
2. What will the following code output?
int apples = 0, bananas = 2, pears = 10;
apples += 10;
bananas *= 10;
pears /= 10;
System.out.println(apples + " " +
bananas + " " +
pears);
3. What will the following code output?
double d = 12.9;
int i = (int)d;
System.out.println(i);
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here