0% found this document useful (0 votes)
3 views3 pages

iOS Interview Questions

The document outlines various topics related to Swift programming, iOS frameworks, and app development, including optional chaining, concurrency, memory management, and testing. It covers advanced concepts such as protocol-oriented programming, dependency injection, and performance optimization. Additionally, it discusses the integration of SwiftUI with UIKit and system-level topics like Keychain and App Transport Security.

Uploaded by

ivynjoki2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views3 pages

iOS Interview Questions

The document outlines various topics related to Swift programming, iOS frameworks, and app development, including optional chaining, concurrency, memory management, and testing. It covers advanced concepts such as protocol-oriented programming, dependency injection, and performance optimization. Additionally, it discusses the integration of SwiftUI with UIKit and system-level topics like Keychain and App Transport Security.

Uploaded by

ivynjoki2007
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

✅ 𝗦𝘄𝗶𝗳𝘁 & 𝗟𝗮𝗻𝗴𝘂𝗮𝗴𝗲 𝗙𝘂𝗻𝗱𝗮𝗺𝗲𝗻𝘁𝗮𝗹𝘀

What is optional chaining and optional binding?

Explain enum with associated type.

What are Tuples?

Difference between class and struct?

What are the different types of Initializers in Swift?

What is the Sequence protocol?

What is the Iterator protocol?

What is Dynamic Dispatch?

Difference between Any and AnyObject?

What is @objc inference?

What is the CodingKey protocol?

What is escaping vs non-escaping closures?

What are the types of closures?

What are blocks in Objective-C and how do they relate to closures in Swift?

✅ 𝗖𝗼𝗻𝗰𝘂𝗿𝗿𝗲𝗻𝗰𝘆 & 𝗠𝘂𝗹𝘁𝗶𝘁𝗵𝗿𝗲𝗮𝗱𝗶𝗻𝗴


Difference between GCD and NSOperationQueue?

What are the benefits of NSOperation?

What are dispatch groups, semaphores, and barriers in GCD?

Explain actor model in Swift concurrency.

How does structured concurrency work in Swift?

When to use Task, async/await, and DetachedTask?

✅ 𝗠𝗲𝗺𝗼𝗿𝘆 𝗠𝗮𝗻𝗮𝗴𝗲𝗺𝗲𝗻𝘁
What is a retain cycle?
What is ARC (Automatic Reference Counting)?

How to resolve strong reference cycles in closures?

What is a weak vs unowned reference?

✅ 𝗶𝗢𝗦 𝗙𝗿𝗮𝗺𝗲𝘄𝗼𝗿𝗸𝘀 & 𝗔𝗿𝗰𝗵𝗶𝘁𝗲𝗰𝘁𝘂𝗿𝗲


What is the difference between Delegate and NSNotification?

What is an extension in Swift and what can’t you do in an extension?

What are NSManagedObjects, Managed Object Context, and NSPersistentContainer?

What is JSONEncoder and JSONDecoder?

Difference between Foundation and CoreFoundation?

What is a bounding box (e.g., in CoreGraphics or Vision frameworks)?

What is an offset (context: CGPoint, UICollectionView, UITableView, etc.)?

What is UIViewController lifecycle?

Explain the Coordinator pattern in iOS.

What is SceneDelegate and how does it relate to AppDelegate?

✅ 𝗔𝗱𝘃𝗮𝗻𝗰𝗲𝗱 𝗦𝘄𝗶𝗳𝘁 & 𝗕𝗲𝘀𝘁 𝗣𝗿𝗮𝗰𝘁𝗶𝗰𝗲𝘀


What is protocol-oriented programming?

What is dependency injection in Swift?

Explain SOLID principles in iOS with examples.

Difference between map, flatMap, compactMap, and reduce.

What is property wrapper and how to use @State, @Published, @AppStorage?

What is the difference between static and class methods?

✅ 𝗧𝗲𝘀𝘁𝗶𝗻𝗴, 𝗗𝗲𝗯𝘂𝗴𝗴𝗶𝗻𝗴 & 𝗧𝗼𝗼𝗹𝘀


How do you write unit tests in iOS?
What is XCTest and how do you mock dependencies?

How do you debug memory leaks?

What tools do you use for performance profiling?

✅ 𝗔𝗽𝗽 𝗟𝗶𝗳𝗲𝗰𝘆𝗰𝗹𝗲 & 𝗣𝗲𝗿𝗳𝗼𝗿𝗺𝗮𝗻𝗰𝗲


How does iOS manage memory for background apps?

How do you handle background tasks?

What is the difference between foreground, background, and suspended states?

How to optimize app startup time?

How do push notifications work in iOS?

✅ 𝗦𝘄𝗶𝗳𝘁𝗨𝗜 & 𝗠𝗼𝗱𝗲𝗿𝗻 𝗶𝗢𝗦


Differences between SwiftUI and UIKit.

How do you integrate SwiftUI into a UIKit app?

What are some limitations of SwiftUI you’ve faced?

✅ 𝗦𝘆𝘀𝘁𝗲𝗺-𝗟𝗲𝘃𝗲𝗹 𝗧𝗼𝗽𝗶𝗰𝘀
What is the Keychain and how do you securely store sensitive data?

How do you use URLSession? What is a URLSessionConfiguration?

What is App Transport Security (ATS)?

What is the sandbox in iOS?

You might also like