🅾️ Objective-C: iOS interview questions
- How does message passing work in Objective-C? Middle PRO
- What is the isa pointer? Senior PRO
- MRC vs ARC — what's the difference? Middle PRO
- What is a retain cycle and how do you break it in Obj-C? Middle PRO
- Property attributes: strong, weak, copy, assign — when to use which? Middle PRO
- What are categories and class extensions? Middle PRO
- How do blocks work and why is __block needed? Senior PRO
- What are KVC and KVO? Middle PRO
- How does an Obj-C protocol differ from a Swift protocol? Middle PRO
- Tell us about the Objective-C runtime. Senior PRO
- What happens when we call a method on a nil pointer? Middle PRO
- What root classes exist in iOS, and why are they needed? Middle PRO
- How do you simulate multiple inheritance? Middle PRO
- Which operations are fast in NSSet vs NSArray? Middle PRO
- How does #include differ from #import? Middle PRO
- What are isKindOfClass and isMemberOfClass for? Junior PRO
- When is it better to use copy for NSString, and why? Middle PRO
- Why don't we use strong for an enum in Objective-C? Junior PRO
- What are @synthesize and @dynamic in Objective-C? Middle PRO
- Objective-C Middle PRO
- Compiler directives Middle PRO
- Pointer and reference Middle PRO
- Forward invocation Senior PRO
- nil, Nil, NULL, NSNull Middle PRO
- NSCoding, archiving Middle PRO
- The id type Middle PRO
- How does objc_msgSend work, and selector caching? Senior PRO
- AnyObject vs Any vs NSObject vs id — the difference Middle PRO
- What is method swizzling and when to use it? Senior PRO
Practice this before your interview
DevPrep turns these answers into one-minute challenges: what does this code print, find the bug, mock interviews. One challenge a day.
Get DevPrep on the App Store