Question: What is wrong with this code?

  1. You cannot assign a Double to a variable of type Int
  2. x is undefined
  3. x is a constant
  4. x has no type

Answer: The correct answer of the above question is Option A:You cannot assign a Double to a variable of type Int