React Native MCQ Banner

React Native Multiple Choice Questions (MCQs) and Answers

Master React Native with Practice MCQs. Explore our curated collection of Multiple Choice Questions. Ideal for placement and interview preparation, our questions range from basic to advanced, ensuring comprehensive coverage of React Native concepts. Begin your placement preparation journey now!

Q91

Q91 What could cause a CORS error when making an API request?

A

Missing headers in the request

B

The API server does not allow cross-origin requests

C

React Native does not support APIs

D

The request is too large

Q92

Q92 What is the primary purpose of Redux in React Native?

A

To manage global state

B

To handle navigation

C

To fetch API data

D

To style components

Q93

Q93 What are the main building blocks of Redux?

A

State, Actions, Reducers, Store

B

State, Props, Context, Store

C

Hooks, Reducers, Context, Dispatch

D

State, Functions, Components, API

Q94

Q94 What is the role of a reducer in Redux?

A

To handle API calls

B

To modify state based on actions

C

To fetch data from components

D

To render UI components

Q95

Q95 Which library is required to integrate Redux with React Native?

A

react-redux

B

redux-toolkit

C

redux-react-native

D

redux-state

Q96

Q96 How does the Context API differ from Redux?

A

Context API requires reducers, Redux does not

B

Redux provides a single store, while Context API provides multiple contexts

C

Redux is built into React Native, while Context API is not

D

There is no difference

Q97

Q97 What is the correct way to create a Redux store?

A

const store = createStore(reducer)

B

const store = createRedux(reducer)

C

const store = new ReduxStore(reducer)

D

const store = configureReduxStore(reducer)

Q98

Q98 How do you dispatch an action in Redux?

A

dispatch({ type: "ADD_ITEM", payload: item })

B

sendAction({ type: "ADD_ITEM", payload: item })

C

store.setState({ type: "ADD_ITEM" })

D

updateStore({ type: "ADD_ITEM" })

Q99

Q99 How do you access Redux state in a functional component?

A

useSelector(state => state.value)

B

useRedux(state => state.value)

C

store.getState().value

D

state.getRedux()

Q100

Q100 What is the purpose of Redux middleware?

A

To modify reducer functions

B

To handle async actions

C

To replace the Redux store

D

To automatically update UI

Q101

Q101 Why does a Redux reducer return undefined?

A

The initial state is missing

B

Reducers must return null

C

Redux does not allow reducers

D

Redux does not support state updates

Q102

Q102 What could cause a Redux action to not update state?

A

The action type is incorrect

B

Redux is not installed

C

Reducers cannot modify state

D

Actions cannot be dispatched in React Native

Q103

Q103 Why might useSelector not return updated state?

A

The reducer is not connected to the store

B

useSelector cannot read state

C

Redux does not work with functional components

D

Redux does not support hooks

Q104

Q104 What is the primary purpose of animations in React Native?

A

To improve user experience

B

To reduce memory usage

C

To prevent UI updates

D

To handle API calls

Q105

Q105 Which built-in API does React Native provide for animations?

A

ReactAnimation

B

Animated API

C

Lottie

D

React Motion

Q106

Q106 Which animation type provides the most natural movement?

A

timing

B

spring

C

decay

D

loop

Q107

Q107 What is the advantage of using the LayoutAnimation API?

A

Allows easy animations with minimal code

B

Improves network performance

C

Prevents UI re-renders

D

Requires manual frame updates

Q108

Q108 What is the correct way to create an animated value?

A

new Animated.Value(0)

B

Animated.createValue(0)

C

new Animation(0)

D

useAnimatedValue(0)

Q109

Q109 How do you animate a view's opacity using the Animated API?

A

Animated.timing(opacity, { toValue: 1, duration: 500 }).start()

B

Animated.fade(opacity, { duration: 500 })

C

opacity.animate({ to: 1, time: 500 })

D

setOpacity(1, { time: 500 })

Q110

Q110 How can you run multiple animations in parallel?

A

Animated.sequence([...])

B

Animated.parallel([...])

C

Animated.stagger([...])

D

Animated.together([...])

Q111

Q111 Why might an animation not work in React Native?

A

The animated value is not updated

B

Animations require Redux

C

Animations only work with state

D

React Native does not support animations

Q112

Q112 Why does LayoutAnimation not work properly on Android?

A

It requires enabling UI manager

B

It only works in React Native 0.70+

C

Animations are disabled in Android

D

React Native does not support animations on Android

Q113

Q113 What is the best tool to debug a React Native application?

A

React DevTools

B

Redux DevTools

C

Chrome Debugger

D

Flipper

Q114

Q114 What is a common cause of slow rendering in React Native?

A

Too many re-renders

B

Excessive use of setState

C

Inefficient component updates

D

Large images in memory

Q115

Q115 How can you prevent unnecessary re-renders in React Native?

A

Using React.memo

B

Using useEffect

C

Using console.log

D

Using setInterval

Q116

Q116 Which tool can be used to analyze React Native performance issues?

A

Flipper

B

Redux

C

Expo

D

Babel

Q117

Q117 How do you enable the performance monitor in React Native?

A

Debug > Performance Monitor in React DevTools

B

import Performance from 'react-native-performance'

C

Use useEffect

D

Modify App.js

Q118

Q118 What is the best way to optimize large lists in React Native?

A

Use ScrollView

B

Use FlatList with keyExtractor

C

Render all items at once

D

Use Redux

Q119

Q119 How do you prevent unnecessary renders in functional components?

A

Use React.memo

B

Use useState without updating state

C

Remove return statements

D

Use console.log

Q120

Q120 Why does a React Native app crash on startup without showing an error?

A

Corrupted node_modules folder

B

Incorrect import statements

C

Invalid Redux setup

D

Syntax errors in JavaScript code

ad verticalad vertical
ad