Multiple choice technology programming languages

let "var <<= 2" results in

  1. var left-shifted 2 bits

  2. var mutliplied by 2 bits

  3. var reduced 2 bits

  4. None of the above

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

The &lt;&lt;= operator in Bash arithmetic evaluation (let) is the left-shift assignment operator. It shifts the bits of var to the left by 2 positions and assigns the result back to var. This is equivalent to multiplying by 4, not 'multiplied by 2 bits' or 'reduced'.