Mobile Engineering
iOS & Swift
6 practice questions. Free questions open a full answer guide; the rest unlock with Pro.
- What is an optional in Swift, and why does the language make you handle the nil case explicitly?
- Walk me through how a retain cycle happens in Swift and how you decide between weak and unowned to break one.Go Pro
- In Swift, what's the difference between a struct and a class, and how do you decide which one to use?Go Pro
- How does Swift's concurrency model help you avoid data races, and how do actors and the MainActor fit into that?Go Pro
- When would you reach for the @Observable macro over the older ObservableObject and @Published pattern in a SwiftUI app, and what does that change about how the view updates?Go Pro
- Your team is turning on Swift 6 strict concurrency checking and the compiler is now flagging Sendable violations across module boundaries. How do you approach that migration without grinding feature work to a halt?Go Pro
Want questions matched to your role? Paste a job title, job description, or CV for a personalized set, or go Pro to unlock the full bank.