Multiple choice technology programming languages

Which of the following will give the output as 3?

  1. (abs (sqrt 8))

  2. (modulo (ceiling (sqrt 8)) 2)

  3. (max (floor (sqrt 8)) (round (sqrt 8)))

  4. (min (truncate (sqrt 8)) (abs (sqrt 8)))

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Evaluating (sqrt 8) gives approximately 2.828. (floor 2.828) is 2.0, while (round 2.828) is 3.0. The max of 2.0 and 3.0 is 3.0. The other options evaluate to 2.828, 1, and 2 respectively, making this choice correct.