Question 1 of 10
A trail map stores a descent of -19 meters. What value does drop hold?
int drop = Math.abs(-19);
- A. -19
- B. 19
- C. 19.0
- D. 0
A trail map stores a descent of -19 meters. What value does drop hold?
int drop = Math.abs(-19);
A survey plot is a perfect square of area 81. What value does side hold?
double side = Math.sqrt(81);
A ranger scales a 2-meter grid four times. What value does span hold?
double span = Math.pow(2, 4);
What value does clipped hold?
int clipped = (int) Math.sqrt(20);
Which statement about Math.random() is correct?
Which integers can this expression produce?
(int) (Math.random() * 8)
A trail app needs a random int from 4 through 9 inclusive. Which expression is correct?
A supplied Math.random() result is 0.4. What value does post hold?
int post = (int) (0.4 * 10);
Which statement about this table of Math expressions is true?
| Expression | Result type |
|---|---|
| Math.abs(-3) | int |
| Math.abs(-3.25) | double |
| Math.sqrt(16) | double |
| Math.pow(2, 3) | double |
A wind reading is -4.9. What value does shown hold?
int shown = (int) Math.abs(-4.9);