You Answered: None. If you took the test, your answer will show up here.

Correct Answer: let name: Int = “infiniteZest.com"

Explanation

First statement declares name as an integer (Int) and then assign a string value to it. Swift is big on code safety (type safety) - an object of a different type cannot be assigned without proper conversion. And, with B, no type is specified and Swift has no way of inferring the type.

Take the Test

Take the complete test on this topic. You will be able to review answers to questions and get a test score.