iOS Interview Questions for Beginners and Experienced Developers -Part 1

Dec 3, 2020 · 4 min read
Photo by fauxels from Pexels

Preparing for interviews has always been a stressful task as we are not very sure what to expect, in this blog post we will explore a few of the commonly asked interview questions.

I have divided the section into three levels based on developer experience, however, I would advise going through all the levels to be best prepared for your interviews.

Once you have completed part 1, you may check out part 2 of the interview questions by clicking here

Wishing you all the best for your next interview round.

Level: Easy

  1. What are value types and reference type in Swift and When to use them?
  2. Why does apple prefer to use Value types by default? What’s wrong with using a reference type?
  3. Why do we use the mutating keyword?
  4. What is the difference between Array and Set?
  5. What’s the difference between atomic and non-atomic
  6. Explain failiable init?
  7. Explain convenience init?
  8. What’s a closure? Explain trailing closures?
  9. Difference between strong and weak keyword? And when to use them?
  10. Explain memory management (ARC) in Swift
  11. Explain MVC along with 3 pros and cons
  12. Explain the difference between MVC and MVVM
  13. Explain pros and cons of MVVM
  14. What is API? OR Have you used URLSession class? What does it do?
  15. Explain the difference between property wrappers and property observers?
  16. Explain the iOS life cycle and 3 delegate method of the AppDelegate
  17. What is a protocol and what are the benefits of using a protocol?
  18. How to pass data from one view controller to another?

Level: Intermediate

  1. Explain delegate pattern in swift and how will you implement them?
  2. What’s the difference between KVO and Delegate?
  3. What’s the difference between KVC and KVO?
  4. Explain singleton class and the when to use them along with drawbacks of using singleton class
  5. What’s the difference between protocol extension and optional protocol?
  6. What do you use for fetching records from API and why?
    Suggestion: It’s best here not to answer things like “ I am using XYZ because my senior told me to do so” OR “We use ABC because it was already there in the project”. Please answer with more technical reasons than such reasons.
  7. When to use guard vs if let in your code?
  8. What’s the difference between frames and bounds?
  9. Explain serial and concurrent queues?
  10. What is SceneDelegate and How is it different from an AppDelegate?
  11. Difference between copy and retain
  12. Difference between GCD and NSOperation
  13. What is REST API? What’s the difference between POST and PUT
  14. What’s the most challenging task you faced in your last project and how did you solve it?
  15. What value am I adding to the code if I am using protocols?

Level: Pro

  1. Have you ever setup any CI/CD pipeline? If yes then explain the process for a new iOS application?
  2. How do you store sensitive information in your app?
  3. How do you measure performance of your application? OR your code?
  4. What architecture have you used for your last project and why?
  5. How will you store records in offline mode and push them back to server? (A suggestion here is to start with a question to the interviewer “I would like to know the details of the application first because there are many ways in which you can do this but different application have different complexities to handle and hence the solution should be based on what the application is trying to achieve when those records are pushed to the server”)
  6. Suppose there are 10 threads trying to access the database at the same time for the same table, how will you make sure that a deadlock never occurs in such case.
  7. We have an iOS app which we would like to port now in SwiftUI, what will be your strategy?
  8. When will you use weak vs unowned in your code?
  9. How do you decide when a MVC based project should be shifted to MVVM?
    Suggestion: Please do not mention the benefits of MVVM here, try to analyze the project requirements and then answer it.
    Mostly a project is hard to maintain because of zero good programming disciplines being followed and the solution can be to implement good programming disciplines than going for a complete re-structure which will be a time consuming process
  10. What will be the benefit of switching to RxSwift for a project who is already using MVVM and follows test driven development?
  11. What are decomposition techniques that you use in your project?
  12. Explain the benefits of Test driven development?
  13. What are your parameters of project estimation? How do you estimate a complex module?
    Suggestion: Project estimation is based on looking at different complexities the project handles like database, push notification etc, sometimes there are some complex modules which would need you to do some POC i.e. proof of concept work so analyze such pain points which could turn out to be possible impediments for the project also do not forget to include some hours to write unit and integration test for your code)
  14. I want to display a PDF in the view from JSON data coming from the server, I don’t want to use any open source library for this or any paid library, how will you achieve this functionality?

I hope all these questions help you out in your interview, in the coming days maybe I will update few of the level with answers as well but for now I hope these questions are helpful for you to achieve your goal.

If you like these questions then please do share it with any of your friends preparing for the interview.

All the best :)

The Startup

Get smarter at building your thing. Join The Startup’s +799K followers.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store