All quizzes
Free quiz · 20 questions in the bank

Core Data quiz

Test your Core Data knowledge with a free interactive quiz — 20 questions with answers and explanations. No signup needed to play.

Question 1/5Score 0

What is `@FetchRequest` in SwiftUI, and how does it relate to Core Data?

Questions in this quiz
  1. What is `@FetchRequest` in SwiftUI, and how does it relate to Core Data?
  2. What is a lightweight migration in Core Data?
  3. What is `NSFetchRequest` used for?
  4. What does `NSManagedObjectContext.mergePolicy` control?
  5. What is the role of `NSPersistentContainer`?
  6. What is the purpose of the `.xcdatamodeld` file (the model editor)?
  7. What is `NSManagedObjectID` and why is it the recommended way to pass a reference to a managed object across contexts?
  8. What is the difference between a Core Data "attribute" and a "relationship" on an entity?
  9. What does `NSBatchDeleteRequest` provide that a normal fetch-then-delete loop doesn't?
  10. What does `NSPredicate(format: "age > %d", 18)` do when attached to a fetch request?
  11. What is Core Data with CloudKit integration (`NSPersistentCloudKitContainer`) used for?
  12. What must you do after modifying properties on a fetched `NSManagedObject` to persist the change?
Gaps to close?
Read the curated Core Data notes — core concepts, patterns, interview prep.
Core Data notes

More quizzes

.NET.NET MAUIAbsintheAccessibilityActixActix Web