InterviewPitch
Land the job you want — prepare
with Real interviews Q&A
Curated interview questions, company-wise guides and coding rounds. Practice mock interviews, improve with feedback, and track your progress.
Q&A
Top curated interview packs
Company-wise & role-wise packs, quality assured.
Mock interview
AI scoring
Coding rounds
Top 10 sets
Beginner
1. What is Swift?
Swift is a powerful and modern programming language developed by Apple for building iOS, macOS, watchOS, and tvOS applications.
Beginner
2. Who developed Swift?
Swift was developed by Apple and introduced in 2014 as a replacement for Objective-C.
Beginner
3. What are variables and constants in Swift?
Variables are declared using var and can change value. Constants are declared using let and cannot change.
Beginner
4. What is type inference?
Swift automatically detects the data type of a variable based on the assigned value.
Beginner
5. What are optionals?
Optionals allow a variable to hold either a value or nil. Declared using a question mark (?).
Beginner
6. What is optional unwrapping?
It is the process of extracting the value from an optional using if-let, guard-let, or force unwrap (!).
Beginner
8. What is a function in Swift?
A reusable block of code defined using the func keyword.
Beginner
9. What is a closure?
A self-contained block of code that can be passed and used in your code.
Beginner
10. What are arrays in Swift?
Arrays store ordered collections of values of the same type.
Intermediate
11. What is a struct in Swift?
Struct is a value type used to group related data.
Intermediate
12. What is a className?
className is a reference type that supports inheritance.
Intermediate
13. Difference between struct and className?
Structs are value types. classNamees are reference types and support inheritance.
Intermediate
14. What is ARC?
Automatic Reference Counting manages memory automatically.
Intermediate
15. What are protocols?
Protocols define a blueprint of methods and properties.
Intermediate
16. What is extension?
Extension adds new functionality to existing types.
Intermediate
17. What is guard statement?
Guard is used for early exit if condition fails.
Intermediate
18. What is enum?
Enum defines a common type for related values.
Intermediate
19. What is lazy property?
Lazy property initializes only when first used.
Intermediate
20. What is computed property?
Property that calculates value instead of storing it.
Advanced
21. What is generics?
Generics allow writing flexible reusable functions and types.
Advanced
22. What is GCD?
Grand Central Dispatch handles concurrency in Swift.
Advanced
23. What is MVVM?
Model-View-ViewModel design pattern.
Advanced
24. What is Codable?
Protocol used for JSON parsing.
Advanced
25. What is weak and unowned?
Used to avoid retain cycles in memory management.
Advanced
26. What is async/await?
Modern concurrency feature introduced in Swift 5.5.
Advanced
27. What is property observer?
didSet and willSet monitor property changes.
Advanced
28. What is Result type?
Represents success or failure of operation.
Advanced
29. What is dependency injection?
Providing dependencies from outside className.
Advanced
30. What is SwiftUI?
Declarative UI framework by Apple.
Advanced
31. What is Combine?
Framework for reactive programming.
Advanced
32. What is protocol-oriented programming?
Design approach using protocols instead of inheritance.
Advanced
33. What is DispatchQueue?
Manages execution of tasks asynchronously.
Advanced
34. What is fatalError?
Stops execution immediately.
Advanced
35. What is main thread?
Thread responsible for UI updates.
Advanced
36. What is memory leak?
Unused memory not released.
Advanced
37. What is tuple?
Groups multiple values into single compound value.
Advanced
38. What is map?
Transforms array elements.
Advanced
39. What is filter?
Filters array elements based on condition.
Advanced
40. What is reduce?
Combines array values into single value.
Advanced
41. What is Singleton pattern?
Ensures only one instance of className exists.
Advanced
42. What is Hashable?
Protocol for hash-based collections.
Advanced
43. What is Equatable?
Protocol to compare two values.
Advanced
44. What is defer?
Executes code before leaving scope.
Advanced
45. What is throwing function?
Function that can throw errors.
Advanced
46. What is try-catch?
Used for error handling.
Advanced
47. What is escaping closure?
Closure that executes after function returns.
Advanced
48. What is dynamic dispatch?
Method resolution at runtime.
Advanced
49. What is @objc?
Exposes Swift code to Objective-C runtime.
Advanced
50. What is iOS App Lifecycle?
States an app goes through: Not Running, Inactive, Active, Background, Suspended.