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

Correct Answer: Error: optional is not unwrapped

Explanation

Here score1 is automatically unwrapped. And when it’s unwrapped it has a valid integer value of 10. But score2 is Optional Int. That means it needs to be unwrapped. That will be the first problem. If you use print(score1+score2!), you will get to the second issue — nil found after unwrapping. Here score2 has not been initialized to a valid integer value.

Take the Test

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