100% found this document useful (1 vote)
797 views3 pages

Top 60 iOS Interview Questions & Answers

This document lists 60 common iOS interview questions and their answers for both freshers and experienced developers. The questions cover topics like the latest iOS and Xcode versions, iPad and iPhone screen sizes, iOS 6 features, Objective-C concepts like properties, memory management, blocks, parsing XML and JSON, UITableView, view controller lifecycle, Core Data vs SQLite, app submission process, and more.

Uploaded by

atoztarget
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
100% found this document useful (1 vote)
797 views3 pages

Top 60 iOS Interview Questions & Answers

This document lists 60 common iOS interview questions and their answers for both freshers and experienced developers. The questions cover topics like the latest iOS and Xcode versions, iPad and iPhone screen sizes, iOS 6 features, Objective-C concepts like properties, memory management, blocks, parsing XML and JSON, UITableView, view controller lifecycle, Core Data vs SQLite, app submission process, and more.

Uploaded by

atoztarget
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
  • iOS Interview Questions

Web Site Name: [Link].

com

[Link]

60 TOP iOS Interview Questions with Answers for freshers and Experienced
pdf
List of top 60 IOS interview questions and answers for freshers beginners and
experienced pdf free [Link] are most frequently asked IOS interview
questions.
1. What is latest iOS version?
2. What is latest Xcode version?
3. What is latest mac os version?
4. What is iPad screen size?
5. What is iPhone screen size?
6. What are the features is IOS 6?
7. Who invented Objective c?
8. What is Cococa and cocoa touch?
9. What is Objective c?
10. How declare methods in Objective c? and how to call them?
11. What is property in Objective c?
12. What is meaning of "copy" keyword?
13. What is meaning of "readOnly" keyword?
14. What is meaning of "retain" keyword?
15. What is meaning of "assign" keyword?
16. What is meaning of "atomic" keyword?
17. What is meaning of "nonatomic" keyword?
18. What is difference between "assign" and "retain" keyword?
19. What is meaning of "synthesize" keyword ?
20. What is "Protocol" on objective c?
21. What is use of UIApplication class?
22. What compilers apple using ?
23. What is synchronized() block in objective c? what is the use of that?
24. What is the "interface" and "implementation"?
25. What is "private", "Protected" and "Public" ?
26. What is the use of "dynamic" keyword?
27. What is "Delegate" ?
28. What is "notification"?
29. What is difference between "protocol" and "delegate"?
30. What is "Push Notification"?
31. How to deal with SQLite database?
32. What is storyboard?
33. What is Category in Objective c?
34. What is block in objective c?
35. How to parse xml? explain in deep.
36. How to parse JSON? explain in deep.
37. How to use reusable cell in UITableview?
38. What is the meaning of "strong"keyword?
39. What is the meaning of "weak" keyword?
40. What is difference strong and weak reference ? explain.
41. What is ARC ? How it works? explain in deep.
42. What manual memory management ? how it work?
43. How to find the memory leaks in MRC?
44. What is use of NSOperation? how NSOperationque works?
45. How Push notification works?
46. What is autorealease pool?
47. What happens if the methods doesnt exist
48. Difference between nil and Nil.
49. What is fast enumeration?
50. How to start a thread?
51. How to download something from the internet?
52. What is synchronous web request and asynchronous ?
53. Difference between sax parser and dom parser ?
54. How to start a selector on a background thread
55. What are the ViewController lifecycle in ios?
56. Difference between coredata & sqlite?
57. Steps for using coredata?
58. Procedure to push the app in AppStore?
59. What are the Application lifecycle in ios?
60. Difference between release and autorelease ?

Common questions

Powered by AI

ARC, or Automatic Reference Counting, is a memory management feature in Objective-C which automatically takes care of retaining and releasing objects. ARC evaluates the lifetime of objects and optimizes the reference count of objects used in your applications, automatically inserting the appropriate retain, release, and autorelease calls at compile-time. This system reduces the programmer's responsibility to explicitly manage memory, thereby reducing memory leaks and simplifying code .

The 'dynamic' keyword in Objective-C is used to instruct the compiler not to automatically synthesize instance variables or implement property setters and getters. Instead, their implementation will be provided dynamically at runtime. This is often used with Core Data entities, where the methods are resolved at runtime by the framework, allowing for flexibility in method implementation and object behavior that can change dynamically at runtime, as it allows developers to handle method or property access themselves or defer the implementation to external systems .

The 'synthesize' keyword in Objective-C was used to automatically generate getter and setter methods for properties. Before newer versions of Objective-C and the ARC system, 'synthesize' allowed developers to specify automatic code generation for managing access to properties. It simplified the development process by reducing the need for boilerplate code. However, with newer Objective-C standards, automatic synthesis is provided by default, so explicit annotation with 'synthesize' has become largely unnecessary unless custom behavior is required .

In Objective-C, memory management involves using mechanisms like ARC, Manual Reference Counting (MRC), and the autorelease pool. ARC automates memory management by inserting retain/release calls at compile time, while MRC requires developers to manage memory manually through retain/release messages and autorelease pools for batch releasing objects at a later time. Best practices include avoiding strong reference cycles, using weak references where appropriate to prevent circular dependencies, and carefully managing retain counts in MRC to ensure memory safety. Utilizing Xcode's Instruments, particularly the Leaks and Allocations tools, also helps identify and fix memory issues .

The delegate pattern in Objective-C is preferred when you wish to allow an object to communicate back to the class that configured it. Delegates are a specialization of protocols where one object acts on behalf of, or in coordination with, another object. A protocol defines a set of methods that a class can implement, but does not associate them with a specific object. Delegates are instanc...ricane applications where specific callbacks are needed. Protocols provide a larger scope of implementations that can apply to any adopter, not just delegated relationships .

When using Manual Reference Counting (MRC) in Objective-C, developers are responsible for managing object lifetimes by explicitly sending retain, release, and autorelease messages to manage their retain counts. To handle memory leaks, one must ensure to balance each retain with a corresponding release to deallocate objects properly once they are no longer needed. Using instruments like the Allocations and Leaks tool in Xcode can help identify memory leaks by showing objects that are not being deallocated properly, allowing developers to adjust retain/release balances .

The 'nonatomic' keyword in Objective-C specifies how properties are handled in multithreading environments. When a property is 'nonatomic', it does not ensure atomic access, meaning it does not guarantee a consistent value in a multithreading environment, but it does increase performance because the extra locks associated with atomic properties are not used. It is often preferred in UI programming where performance is more critical than having consistent data across threads .

In Objective-C, a 'strong' reference creates an ownership relationship between objects, meaning that the object it points to will not be deallocated while a strong reference exists. In contrast, a 'weak' reference does not keep the object in memory, and allows for it to be deallocated. Weak references become nil automatically if the object is deallocated, hence preventing dangling pointers and potential crashes. This distinction is essential in avoiding retain cycles and memory leaks .

NSOperation is an abstract class in iOS that represents a single unit of work, which can be used to encapsulate a block of code that performs a specific task. NSOperationQueue enhances the functionality of NSOperation by serving as a robust way to manage and execute a series of operations efficiently. It allows for the execution of operations asynchronously and serially or concurrently, offers dependencies between tasks, and can effectively manage the lifecycle and priorities of tasks without explicitly managing threads. This makes it suitable for tasks that require background processing or are resource-intensive .

Core Data and SQLite are both data persistence technologies used in iOS development, but they differ significantly. Core Data is an object graph management and persistence framework, allowing developers to work with data using high-level abstractions. It handles data model relationships, validation, and querying without requiring developers to write much SQL themselves. SQLite, on the other hand, is a lightweight relational database that directly provides SQL operations, offering a lower-level approach to storing structured data. Core Data may use SQLite as a backend store, but it abstracts the details of database implementation away from developers .

Web Site Name: www.atoztarget.com  (http://www.atoztarget.com/)
 
http://www.atoztarget.com/2014/04/60-top-ios-interview-q
25. What is "private", "Protected" and "Public" ?  (http://www.atoztarget.com/2014/04/what-is-private-protected-and-public.ht
58. Procedure to push the app in AppStore?  (http://www.atoztarget.com/2014/04/procedure-to-push-app-in-appstore.html)
59. Wh

You might also like