Use %d with integer 100 for pages > 100 condition.
Step 2: Verify sort descriptor
Sort by title ascending is correct with ascending: true.
Step 3: Review other options
let request = NSFetchRequest(entityName: "Book")
request.predicate = NSPredicate(format: "pages > %@", 100)
request.sortDescriptors = [NSSortDescriptor(key: "title", ascending: false)] uses %@ with Int (wrong), descending sort; C uses >= instead of >; D uses raw number in format string (not recommended).
Final Answer:
Option A code snippet correctly fetches and sorts -> Option A
Quick Check:
Use %d for Int and ascending true for sort [OK]
Quick Trick:Use %d for Int in predicate and ascending true for sort [OK]
Common Mistakes:
Using %@ with Int in predicate
Wrong sort order
Using >= instead of >
Master "Local Data Persistence" in iOS Swift
9 interactive learning modes - each teaches the same concept differently