Swi Interview Questions for Freshers List some advantages and disadvantages of using ios Swi


State your understanding of core data


Download 0.71 Mb.
Pdf ko'rish
bet20/27
Sana09.10.2023
Hajmi0.71 Mb.
#1696547
1   ...   16   17   18   19   20   21   22   23   ...   27
Bog'liq
0b951f3e909d09b66eb8f74930008ded79a64d5e79248dc67824bd9e2aadd4fa

31. State your understanding of core data.
Apple's Core Data framework is one of the most powerful frameworks for macOS and
iOS programmes. In our applications, core data is used to manage the model layer
object. Within iOS applications, we may use Core Data as a framework to filter, alter,
save, and track data. Core Data is not a relational database in the traditional sense.
Without learning SQL, we can easily connect the objects in our app to the table
records in the database using core data. The M in the MVC structure stands for core
data.
Some features of Core data are listed below:
Page 26
© Copyright by Interviewbit


Swi Interview Questions
Integration with the iOS and macOS toolchains is seamless.
Data organisation, filtering, and grouping in memory and in the user interface
(User Interface).
Object storage is supported automatically.
Property values are validated automatically.
The first object graph management framework.
The object graph's life cycle is managed using the Core Data framework.
32. What are the several methods for unwrapping an optional in
Swi ?
The several methods for unwrapping an optional in Swi are as follows:
Forced unwrapping: It consists in adding a ! a er an Optional value, to
automatically unwrap it, without having to check whether it is nil or not.
Example - let v:String = b!
Optional chaining: The technique of querying and calling properties, methods,
and subscripts on an optional that is currently nil is known as optional chaining.
The property, method, or subscript call succeeds if the optional includes a value;
if the optional is nil, the property, method, or subscript call returns nil. Multiple
inquiries can be chained together, and if any link in the chain is nil, the entire
chain will fail gracefully. Example - 
let v = b?.count

Download 0.71 Mb.

Do'stlaringiz bilan baham:
1   ...   16   17   18   19   20   21   22   23   ...   27




Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling