Swift MCQ Test: Swift MCQs - Practice Questions
1. What is the purpose of Swift's 'Any' and 'AnyObject' types?
2. How does Swift handle optionals and unwrapping?
3. What is the correct syntax for an 'if-else' statement in Swift?
4. Which Swift keyword is used to indicate the absence of a value?
5. What is the purpose of the 'guard' statement in Swift?
6. What is the correct way to check if two strings are not equal in Swift?
7. Explain the concept of 'optionals' in Swift and how they are used.
8. Explain the concept of Swift's 'Set' type.
9. Explain the use of Swift's 'lazy' keyword.
10. In Swift, what is the purpose of the 'guard' statement?