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

Correct Answer: Int

Explanation

In Swift, if you assign an integer literal during the declaration of variable or constant (without specifying its type), Swift will infer it to be of type Int. Here, the value 100 will fit inside an Int8, but it will still be of type Int.

Take the Test

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