1.What is Core Data?
Core Data is a framework that manages an object graph.
It is used to store data from your iPhone application into a Sqlite file which is present in the document directory of your application.
How to Explain iOS Application LifeCycle ?
Core Data is not a relational database, you can see Core data as a wrapper around Sqlite although core data is quite simpler as compared to Sqlite but it does not offer some of the functionality that Sqlite can offer and vice versa.
Top iOS Interview Questions And Answers for Beginners
Core Data stack is the heart of Core Data.
It's a collection of objects that make Core Data tick.
The key objects of the stack are the managed object model, the persistent store coordinator, and one or more managed object contexts.
Concept Of Multitasking In iOS App ?
3.What is ManagedObject?
Managed objects are the objects that are created by your application code to store data.
A managed object can be considered as a row or a record in a relational database table.
For each new record to be added, a new managed object must be created to store the data.
Similarly, retrieved data will be returned in the form of managed objects, one for each record matching the defined retrieval criteria.
Managed objects are actually instances of the NSManagedObject class, or a subclass thereof.
These objects are contained and maintained by the managed object context
How To Explain UIViewController Life Cycle in iOS ?
4.What is Persistence store coordinator?
The persistent store coordinator is responsible for coordinating access to multiple persistent object stores.
As an iPhone developer you will never directly interact with the persistent store coordinator and, in fact, will very rarely need to develop an application that requires more than one persistent object store.
When multiple stores are required, the coordinator presents these stores to the upper layers of the Core Data stack as a single store.
Application's Background Transition Cycle in iOS
how to start a long-running task when your app goes to the background in iOS ?
5.What is Managed Object Context?
Core Data based applications never interact directly with the persistent store. Instead, the application code interacts with the managed objects contained in the managed object context layer of the Core Data stack. The context maintains the status of the objects in relation to the underlying data store and manages the relationships between managed objects defined by the managed object model. All interactions with the underlying database are held temporarily in within the context until the context is instructed to save the changes, at which point the changes are passed down through the Core Data stack and written to the persistent store.
Basic iOS interview Questions And Answers
Top 5 Frequently Asked iOS Interview Questions And Answers.
iOS Interview Questions And Answers Part 9