Question:

Given the code below, what data type does i have?

let i = 10.2

Answer:

Correct answer: Double.

Explanation: When given a floating-point number, Swift's type inference will use the Double data type.


Keywords:

© 2017 QuizBucket.org