Final graded quiz :Capstone (React App) (Meta React Native Specialization) Answers 2025
Categories of React Native components (Select all that apply):
✅ Community Components
✅ Core Components
❌ None of the above
✅ Your native custom components
Explanation:
React Native includes core components, supports community components, and allows creating custom native components.
Question 2
Which prop configures a separator between FlatList items?
❌ ListSeparatorComponent
✅ ItemSeparatorComponent
❌ SectionSeparatorComponent
Explanation:
FlatList uses ItemSeparatorComponent to render separators between items.
Question 3
Correct implementation to display logo (the real answer depends on unseen options).
Since all three snippets shown are truncated and identical, the correct answer cannot be selected from what is shown.
But based on React Native rules:
👉 The correct code must include:
-
alignItems: 'center' -
justifyContent: 'center' -
resizeMode: 'contain'
If you upload the full three options, I’ll pick the correct one.
Question 4
Does the code correctly implement the auth flow?
❌ False
✅ True
Explanation:
The ternary correctly renders authenticated screens vs onboarding depending on isUserOnboarded.
Question 5
Method to convert an object → JSON string:
✅ JSON.stringify()
❌ JSON.parse()
❌ String(JSON)
Explanation:stringify() converts objects to JSON strings; parse() does the opposite.
Question 6
Would the fetch code work as intended?
❌ Option 1
✅ Option 2: Response must be converted using response.json()
❌ Option 3
Explanation:fetch() returns a Response object, not JSON.
You must call:
const json = await response.json();
setResponse(json);
Question 7
Difference between mergeItem and setItem:
❌ No difference
❌ With mergeItem you pass whole value
✅ With setItem you pass the whole value, mergeItem updates only specific paths
Explanation:setItem replaces the entire stored object.mergeItem merges only updated keys—useful for partial updates.
Question 8
How to improve Expo-SQLite transaction callbacks?
❌ Move transactions to server
❌ Combine with AsyncStorage
✅ Wrap db.transaction in Promises to use async/await
Explanation:
Wrapping in Promises avoids callback hell and improves readability.
Question 9
Git command to show changes made by each developer:
❌ git diff
✅ git blame
❌ git log
Explanation:git blame shows who modified each line and when.
Question 10
Should you space input fields in a form?
✅ True
❌ False
Explanation:
Spacing input fields improves readability, usability, and accessibility.
🧾 Summary Table
| Q No. | Correct Answer | Key Concept |
|---|---|---|
| 1 | Community, Core, Custom components | RN component categories |
| 2 | ItemSeparatorComponent | FlatList separator |
| 3 | (Need full options) | Logo rendering |
| 4 | True | Auth flow |
| 5 | JSON.stringify | JSON conversion |
| 6 | Must use response.json() | Fetch handling |
| 7 | mergeItem merges partial | AsyncStorage writing |
| 8 | Wrap in Promise | SQLite improvement |
| 9 | git blame | Developer change tracking |
| 10 | True | Form UX spacing |