Total Questions : 10
Expected Time : 10 Minutes

1. Which operator is used for equality comparison in Swift?

2. What is the purpose of an optional in Swift?

3. What is the purpose of Swift's 'Any' and 'AnyObject' types?

4. In Swift, how do you declare a custom error type conforming to 'Error' protocol?

5. Which keyword is used to declare a constant in Swift?

6. How do you declare a property as 'weak' in Swift?

7. How can you achieve multithreading in Swift?

8. Explain Swift's 'associatedtype' in protocols.

9. What is the purpose of the Swift 'guard' statement?

10. What is the purpose of the 'if' statement in Swift?