Skip to content

Module Quiz: Project Functionality :Capstone (React App) (Meta React Native Specialization) Answers 2025

Features supported by the FlatList component (Select all):

❌ Sectional support
Pull to refresh support
Fully cross-platform
Header, footer and separator support

Explanation:
FlatList supports pull-to-refresh, works on iOS/Android, and allows custom headers, footers, and separators.
Section support is only in SectionList, not FlatList.


Question 2

Required FlatList props:

❌ keyExtractor
data
❌ sections
renderItem

Explanation:
data and renderItem are mandatory.
keyExtractor is recommended but optional.
sections is for SectionList, not FlatList.


Question 3

React Navigation methods to move between screens:

❌ navigation.pop(‘Details’)
❌ navigation.goTo(‘Details’)
navigation.navigate(‘Details’)

Explanation:
navigate() is the correct method.
pop() removes screens, not navigate.
goTo() doesn’t exist.


Question 4

Option used to customize each screen’s header in React Navigation:

options
❌ headerOptions
❌ screenOptions

Explanation:
options is used inside each screen to customize header and screen behavior.
screenOptions applies to all screens globally.


Question 5

Which request method is used by fetch in the code?

❌ POST
❌ PUT
GET

Explanation:
fetch() defaults to the GET method unless another method is defined.


Question 6

Correct JSON syntax rules (select all):

Keys and values are separated with a colon.
Elements in an array are separated with commas.
❌ Objects are separated by enclosing each one in square brackets.

Explanation:
Square brackets represent an array, not separate objects.


Question 7

Best place to populate AsyncStorage data on app startup:

❌ Inside the render part
❌ In a separate file
Inside a useEffect with no dependencies

Explanation:
A useEffect(() => {}, []) runs once after initial render—perfect for loading stored data.


Question 8

API that removes all AsyncStorage data:

clear
❌ multiRemove
❌ removeItem

Explanation:
clear() wipes all app storage.
multiRemove() removes selected keys.
removeItem() removes one key.


Question 9

Best place to open a SQLite DB connection:

❌ Inside useEffect
❌ In a separate file
In the app entry file, at the top

Explanation:
Expo SQLite must open the DB once at the top-level before components mount.


Question 10

SQL keyword for inserting variables as parameters:

❌ The ! keyword
The ? keyword
❌ The INSERT keyword

Explanation:
? is used for prepared statements to safely pass variables into SQL queries.


🧾 Summary Table

Q No. Correct Answer Key Concept
1 Pull to refresh, Cross-platform, Header/Footer/Separator FlatList features
2 data, renderItem Required FlatList props
3 navigation.navigate React Navigation
4 options Screen customization
5 GET fetch default method
6 First two options JSON syntax
7 useEffect([]) AsyncStorage initialization
8 clear AsyncStorage wipe
9 App entry file (top) SQLite initialization
10 ? SQL parameter binding