Multiple choice technology operating systems

What is the output of $bc 9/5

  1. 1

  2. 1.8

  3. 1.80

  4. 2

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

The bc command performs integer arithmetic by default. When you type 9/5 in bc without setting scale, it truncates the decimal part and returns 1. To get floating-point results, you'd need to set scale first (e.g., 'scale=2' would give 1.80). Integer division drops the decimal entirely.