Module quiz: Lists and Text Input in React Native :React Native (Meta iOS Developer Professional Certificate) Answers 2026
Question 1
You need to display a large list of items in your app while maintaining solid performance. Which components could you use to accomplish this? Select all that apply.
✅ FlatList
✅ SectionList
❌ ScrollView
Explanation:FlatList aur SectionList virtualized lists hain, jo sirf visible items render karte hain. ScrollView sab items ek sath render karta hai, jo large lists ke liye slow hota hai.
Question 2
The keyExtractor is a required prop to both the FlatList and SectionList components.
❌ False
Explanation:keyExtractor recommended hai, but required nahi. Agar item me already key ya id ho, to optional ho jata hai.
Question 3
Which feature is NOT supported by the FlatList component?
❌ Fully cross-platform
❌ Pull to refresh support
❌ Header, footer, and separator support
✅ Sectional support
Explanation:
Section-based lists ke liye SectionList use hota hai, FlatList nahi.
Question 4
Observe the emulator screenshot below; which one of the following code snippets will produce this output on the emulator?
(Username input screen)
✅ First code snippet
❌ Second code snippet
Explanation:
First snippet complete aur correct structure follow karta hai (state + TextInput binding).
Question 5
Which method would you use to make a native text input lose focus?
❌ focus()
❌ isFocused()
✅ blur()
Explanation:blur() method se TextInput ka focus hata diya jata hai (keyboard dismiss hota hai).
Question 6
Which one of these props are used to configure a separator component between each item in the FlatList?
❌ ListSeparatorComponent
❌ SectionSeparatorComponent
✅ ItemSeparatorComponent
Explanation:ItemSeparatorComponent har item ke beech separator add karta hai.
Question 7
The SectionList component can be rendered without providing the sections prop to it.
❌ False
Explanation:SectionList ke liye sections prop mandatory hota hai.
Question 8
Observe the output on the emulator screenshot below, and determine what component you would use to display this list of items within your app.
(More items load on scroll)
❌ ScrollView
❌ SectionList
✅ FlatList
Explanation:
Simple scrolling list (without sections) ke liye FlatList best choice hai.
Question 9
Select all the keyboard types that are supported cross-platform by the TextInput component.
❌ web-search
✅ number-pad
✅ email-address
❌ phone-pad
Explanation:number-pad aur email-address iOS & Android dono me supported hain.
Question 10
Internal state is preserved when the content is scrolled out of the screen in which of these components?
❌ FlatList
❌ SectionList
✅ ScrollView
Explanation:ScrollView items ko unmount nahi karta, isliye internal state preserve rehti hai. FlatList / SectionList virtualization use karte hain.
🧾 Summary Table
| Q | Correct Answer(s) | Key Concept |
|---|---|---|
| 1 | FlatList, SectionList | Performance lists |
| 2 | False | keyExtractor |
| 3 | Sectional support | FlatList limitation |
| 4 | First snippet | TextInput binding |
| 5 | blur() | Input focus |
| 6 | ItemSeparatorComponent | List separator |
| 7 | False | SectionList requirement |
| 8 | FlatList | Infinite scroll |
| 9 | number-pad, email-address | Keyboard types |
| 10 | ScrollView | State preservation |