1. Which of the following will produce an answer that is closest in value to a double, d, while not being greater than d?

[Assistant Programmer 2016 [MCQ] : 2016]

1. (int)Math.min(d);

1

2. (int)Math.max(d);

2

3. (int)Math.abs(d);

3

4. (int) Math.floor(d);

4
Answer
Comments