
























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

























































































React Native Mobile Development Exam 2026: Professional Certification Practice Test — Components, Hooks, Navigation, State Management, APIs, Native Modules, Performance & Mobile App Deployment — 190 Multiple-Choice Questions with Answers & Detailed Rationales
SECTION 1: React Native Fundamentals (Questions 1-25)
Question 1
Which core React Native component is specifically optimized for rendering large lists of data with recycling behavior?
A. ScrollView
B. FlatList
C. ViewGroup
D. ListContainer
Correct Answer: B
Explanation: FlatList implements virtualization and item recycling, rendering only visible items to optimize memory usage and scrolling performance for large datasets.
Question 2
A developer needs to display a simple, short list of items that will never change. Which component is most appropriate?
A. VirtualizedList
B. SectionList
C. ScrollView with map()
D. FlatList with keyExtractor
Correct Answer: C
Explanation: ScrollView with map() is suitable for small, static lists since virtualization overhead is unnecessary and may complicate simple rendering scenarios.
Question 3
What is the primary purpose of the keyExtractor prop in FlatList?
A. To encrypt item data for security
B. To provide unique keys for React reconciliation
C. To extract API keys from configuration
D. To filter duplicate items automatically
Correct Answer: B
Explanation: keyExtractor provides stable, unique identifiers for list items, enabling React to efficiently track additions, removals, and reorderings during reconciliation.
Question 4
In React Native, which component allows you to build scrollable content that renders all children at once?
A. FlatList
B. Virtualization breaks and all items render
C. The app automatically converts to SectionList
D. Memory usage decreases significantly
Correct Answer: B
Explanation: Nesting VirtualizedList inside ScrollView with same orientation disables virtualization warnings and renders all items, defeating FlatList's performance benefits.
Question 7
Which prop should be used to add spacing between items in a FlatList without wrapping each item?
A. itemPadding
B. separatorHeight
C. ItemSeparatorComponent
D. marginBetween
Correct Answer: C
Explanation: ItemSeparatorComponent renders a component between list items, providing clean separation without modifying individual item components or their styling.
Question 8
A developer wants to implement pull-to-refresh functionality in a FlatList. Which props are required?
A. onPull and refreshing
B. refreshing and onRefresh
C. pullEnabled and onPullDown
D. refreshControl and onReload
Correct Answer: B
Explanation: The refreshing boolean controls the refresh indicator visibility, while onRefresh callback executes when user performs pull-to-refresh gesture on the list.
Question 9
What is the recommended approach for rendering items of varying heights in a FlatList?
A. Use getItemLayout for all items
B. Avoid FlatList entirely
C. Implement onLayout measurements
D. Set fixed height for all items
Correct Answer: C
Explanation: For variable height items, onLayout measurements or estimated heights with getItemLayout offsets help FlatList calculate scroll positions accurately without fixed dimensions.
Question 10
Which lifecycle method is called when a React Native screen becomes visible after being in the background?
A. CSS media queries
B. Array style syntax
C. External stylesheets only
D. Global style variables
Correct Answer: B
Explanation: Array style syntax like style={[styles.base, isActive && styles.active]} enables conditional style application based on component state or props.
Question 13
A developer notices text is not wrapping properly in a Text component. What style property should be adjusted?
A. textOverflow
B. flexWrap
C. numberOfLines
D. whiteSpace
Correct Answer: B
Explanation: While flexWrap affects flex containers, text wrapping in React Native Text components typically requires proper width constraints and flex properties on parent containers.
What is the default flexDirection value in React Native's Yoga layout engine?
A. row
B. column
C. row-reverse
D. column-reverse
Correct Answer: B
Explanation: Unlike web CSS where row is default, React Native uses column as default flexDirection, stacking children vertically unless explicitly changed.
Question 15
Which unit is used for dimensions in React Native styles?
A. pixels (px)
B. em units
C. density-independent pixels
D. rem units
Correct Answer: C
Explanation: React Native uses density-independent pixels (dp), automatically scaling values based on device pixel ratio for consistent visual sizing across devices.
A component needs to maintain its aspect ratio regardless of screen size. Which approach is most reliable?
A. Setting fixed width and height
B. Using percentage dimensions only
C. aspectRatio style property
D. Media query breakpoints
Correct Answer: C
Explanation: The aspectRatio style property maintains width-to-height ratio automatically, adapting to available space while preserving the specified proportions.
Question 19
Which prop is required when using Image component with a remote URL in React Native?
A. source with uri property
B. src attribute
C. href property
D. url attribute
Correct Answer: A
Explanation: React Native Image component requires source prop containing an object with uri property for remote images, unlike web's simple src attribute.
What is the recommended way to handle image loading states in React Native?
A. Use onLoadStart and onLoadEnd callbacks
B. Check image dimensions first
C. Preload all images at startup
D. Use synchronous image loading
Correct Answer: A
Explanation: onLoadStart and onLoadEnd callbacks enable showing placeholders or loading indicators, improving perceived performance during image fetch operations.
Question 21
Which component should be used for user text input in React Native?
A. TextInput
B. Input
C. TextField
D. FormInput
Correct Answer: A
Explanation: TextInput is React Native's core component for text entry, supporting various keyboard types, secure entry, and multiline input configurations.
Which Touchable component provides visual feedback with opacity change on press?
A. TouchableHighlight
B. TouchableOpacity
C. TouchableWithoutFeedback
D. TouchableNativeFeedback
Correct Answer: B
Explanation: TouchableOpacity reduces component opacity when pressed, providing subtle visual feedback that indicates touch recognition to users.
Question 25
What is the modern recommended approach for handling touch interactions in React Native?
A. TouchableOpacity exclusively
B. Pressable component
C. TouchableHighlight for all cases
D. Native gesture handlers only
Correct Answer: B
Explanation: Pressable is the modern, more flexible alternative to Touchable components, offering enhanced customization for press states and interactions.
SECTION 2: Navigation and Routing (Questions 26-50)
Which navigation library is officially recommended by the React Native team?
A. React Navigation
B. React Router Native
C. Native Navigation
D. Flutter Navigation
Correct Answer: A
Explanation: React Navigation is the officially recommended solution, providing native- feeling navigation with extensive customization and community support.
Question 27
What is the primary difference between Stack Navigator and Tab Navigator?
A. Stack uses gestures, Tab uses buttons
B. Stack maintains history, Tab switches between screens
C. Tab requires more memory
D. Stack only works on iOS
Correct Answer: B
Explanation: Stack Navigator maintains a navigation history with push/pop semantics, while Tab Navigator switches between peer screens without history tracking.
A developer needs to reset navigation stack after logout. Which method should be used?
A. navigation.pop()
B. navigation.goBack()
C. navigation.reset()
D. navigation.replace()
Correct Answer: C
Explanation: navigation.reset() clears the entire navigation state and sets new routes, essential for logout flows to prevent back navigation to authenticated screens.
Question 31
What is the purpose of NavigationContainer in React Navigation?
A. Renders individual screens
B. Manages navigation state and linking
C. Styles navigation headers
D. Handles deep linking only
Correct Answer: B
Explanation: NavigationContainer wraps the entire navigation structure, managing state persistence, deep linking configuration, and navigation context for child navigators.
How do you conditionally render different navigators based on authentication state?
A. Use if statements in render
B. Ternary operators in NavigationContainer children
C. Switch navigator pattern
D. All approaches work
Correct Answer: D
Explanation: All approaches work; common pattern uses conditional rendering of auth stack versus main stack based on authentication state in the navigation tree.
Question 33
Which navigator type provides drawer sliding from screen edge?
A. StackNavigator
B. TabNavigator
C. DrawerNavigator
D. ModalNavigator
Correct Answer: C
Explanation: DrawerNavigator implements a slide-out drawer panel, typically from the left edge, commonly used for main navigation menus in mobile applications.
Which navigation pattern is best for onboarding flows?
A. Tab Navigator
B. Stack Navigator
C. Drawer Navigator
D. Modal Navigator
Correct Answer: B
Explanation: Stack Navigator suits linear onboarding flows with forward/back progression, allowing users to review previous steps before completion.
Question 37
How do you prevent going back to a specific screen in React Navigation?
A. Set gestureEnabled: false
B. Set headerBackVisible: false
C. Use navigation.replace() or reset()
D. Screens cannot be removed from history
Correct Answer: C
Explanation: navigation.replace() swaps current screen without adding to history, while reset() rebuilds the stack entirely, effectively preventing back navigation.
What is the purpose of the useFocusEffect hook?
A. Focuses TextInput automatically
B. Runs effects when screen gains focus
C. Prevents screen blur
D. Manages keyboard focus
Correct Answer: B
Explanation: useFocusEffect runs the effect when screen comes into focus and cleans up on blur, ideal for refreshing data or subscribing to events.
Question 39
Which prop controls header visibility in React Navigation?
A. showHeader
B. headerShown
C. displayHeader
D. headerVisible
Correct Answer: B
Explanation: headerShown boolean in screen options controls whether the navigation header appears, useful for full-screen or custom header implementations.