As described in the iOS recruitment process main page, the face-to-face technical interviews involve us asking candidates a number of technical questions which we have decided to open-source.
Please keep in mind that this document is in a continuous state of flux, with new questions being added, and old ones tweaked or removed.
- Questions related to the information on the candidate's CV
- What technical books and blogs have you read or are reading at the moment?
- What conferences have you been to or plan on attending, if any?
- Questions related to the candidate's open source contributions, if any.
- What questions would you ask during an interview?
- What is your opinion on
MVC
in iOS dev, and alternatives such asMVVM
andVIPER
? - What role does the view controller play?
- How do you generally avoid massive view controllers?
- Do you know what the
SOLID
principles are? - How would you architect the navigation in a complex application with many screens without using storyboards segues?
- Are you familiar with
Design Patterns
and theGang of Four
book? - What is your opinion on the use of the
Singleton
pattern? What are its pros and cons? - Are you familiar with
Dependency Injection
? If so, what is it good for? - And what about the
Dependency Inversion
principle? - Is immutability a good thing? Why or why not?
- Can you briefly describe 3 design patterns used in iOS development, other than
MVC
andSingleton
, and what situations they're best suitable for? - Can you describe the similarities and difference between the
Delegation
andObserver
patterns? - What do you think are the main architectural challenges associated with developing for the iPad, compared to developing for the iPhone?
- How do you handle state in your app(s)?
- Are you familiar with
Reactive Programming
? - What's the basic design pattern behind
Reactive Programming
? - What's the
Observable
(in RxSwift) orSignal
andSignalProducer
(in ReactiveSwift) orPublisher
(in Combine)? - How would you explain reactive programming to a junior developer who knows nothing about it?
- Why not using Future/Promises/Async-await instead of ReactiveSwift/RxSwift?
- What is functional programming? Explain it to a junior.
- Showcase examples of FP usage with clear benefits to a junior.
- Can a FP-oriented codebase be difficult to understand? Why?
- Is Swift a FP-oriented language?
- What is a higher-order function?
- Do you know what Curried Functions are? How do they differ from Partial Application?
- What is the
pipe
(|>
) operator? Is it different frommap
? How do you propagate errors with it? Would aflatPipe
operator make sense? - What is a monad? Have you ever used one? (Related: why do you think FP has so many academic sounding terms?)
- Are you familiar with the Combine framework?
- In what ways does it differ from ReactiveSwift or RxSwift?
- Can you explain the concept of backpressure?
- Can you tell us some of the pros and cons of developing in Swift today?
- What's your opinion on adopting Swift in both legacy projects and green-field projects?
- Can you give us a quick overview of the benefits of Swift over Objective-C? And on how they differ?
- Say that there is a function for which we can define a reasonable default, but we need to define specialised versions for a couple of edge cases. How can we do this in Swift?
- Have you played with Swift Playgrounds? What are its key features and benefits?
- Are you familiar with the latest changes in the Swift language itself? If so, can you elaborate on some of them?
- When overriding an initialiser method in Obj-C, you generally call the super implementation before doing anything else. In Swift, the compiler will complain if you do that in certain situations. Do you know when and why?
- What's your opinion about
Protocol Oriented Programming
as opposed to the more traditional approach we've had on iOS? - What are the differences between a
protocol
with a default implementation, and abase class
? - Is it possible to define an instance method that applies to arrays of integers but not to arrays of doubles, or any other type? Can you think of an example when this could be useful? Do you happen to know the syntax?
- What is the Swift embedded runtime?
- What is the difference between
value semantics
andreference semantics
? - Say that you have a struct and one or more of its properties is of a reference type. What happens then? Does the struct still have value semantics?
- How does the Swift runtime environment manage memory these days?
- How does
ARC
work? - Do you know what
autorelease pools
are? When are they useful? - Do you know what retain cycles are? Can you give examples? Is it something to worry about and, if so, what facilities are available in Swift to handle them?
- Do you know what the
weak
,strong
, andunowned
keywords are, and when they need to be used? - What are the differences between
copy
,strong
,weak
andassign
property attributes? When should you use each of them? - What is the difference between the Swift
nil
and the Obj-Cnil
? - What storage options do you know for iOS and when should you use them?
- Why is it inherently harder to do static analysis in languages like Obj-c compared to languages like Swift?
- Do you know what
Protocol Extensions
are? - What is the
mutating
keyword? - What is the
@availability
attribute? - What is the
@objc
keyword used for? - Do you know what
@autoclosure
and@escaping
attributes are and when to use them? - Do you know what
type-erasure
is in the context of Swift generics? - Why is it that, in swift, you can't have an array of, say,
Equatable
, ie, what's the reason for the compiler error "Protocol 'XXX' can only be used as a generic constraint because it has Self or associated type requirements"? - Are you familiar with functional-programming methods such as
map
,filter
, andreduce
? Can you explain their similarities and differences? Swift Standard Library
: What areGenerator
s,Sequence
s andCollection
s?- What problems do optionals solve?
- Do you use optionals to handle state? If so, how do you model Errors in an Optional context?
- What are your thoughts on using Storyboards, NIBs/XIBs, and doing all UI in code?
- What is your view and experience in using
Autolayout
andAdaptive Sizing
? - Have you used
Instruments
? - How familiar are you with reading crash reports?
- Are you familiar with
Crashlytics
? - What analytics frameworks are you familiar with or have used?
- Have you used
TestFlight
?Firebase
?
- What is a
thread
? In which cases would you create your own threads? - What do you think of
Grand Central Dispatch
? - Have you used
dispatch_once
? In broad strokes, how does it work? - What is a
dispatch group
? - What methods for thread synchronisation do you know on iOS?
- What are the advantages and disadvantages of
GCD
andNSOperationQueue
/NSOperations
? - What is
KVO
? Do you know how it works? - How are objects stored in a collection? Can you store
weak
references in a collection? - What is
Hashable
? Why does it requireEquatable
? - Can you list some
communication patterns
used in iOS? - What are the differences between
frame
andbounds
? - Is the
bounds.origin
always zero? - How does UIKit know which view is tapped? How would you extend the touchable area of a
UIView
? - What is the
Responder Chain
? - Have you used
Core Data
? If so, how do you like it, and why? When would it not be appropriate to useCore Data
? - What other iOS frameworks are you familiar with (eg AVFoundation, SceneKit)?
- Which 3rd party frameworks do you know about or use? Why would you use them?
- Have you heard of or used
Cocoapods
,Carthage
, and theSwift Package Manager
? - Which version control tools do you use? How much experience do you have with
git
? Can you explain what arebase
operation is?
- What is a
deadlock
? How do you avoid it? - What is a
race condition
? How do you avoid it? - Knowledge about Big O notation
- Knowledge about data structures: graphs, trees, queues, stacks, linked lists, hashtables and others.
- Knowledge about algorithms: sorting, searching and others.