Question: What does this code return? `val x = 3; if (x > 2) x = 4 else x = x*2`

  1. 4
  2. an error
  3. 6
  4. 3

Answer: The correct answer of the above question is Option B:an error