
Q1
Q1 What is the primary purpose of React Native?
To build web applications
To develop cross-platform mobile applications using JavaScript
To create machine learning models
To automate backend database operations
Q2
Q2 Which company developed React Native?
Microsoft
Apple
Q3
Q3 Which platform does React Native support for development?
Android only
iOS only
Both Android and iOS
Windows only
Q4
Q4 What is the primary advantage of using React Native over traditional native development?
Faster performance
Write once, run everywhere
Less dependency on JavaScript
Limited access to native APIs
Q5
Q5 What is the major difference between React and React Native?
React is used for web development, while React Native is used for mobile development
React Native supports HTML, while React does not
React is compiled to native code, while React Native runs in a web browser
There is no difference
Q6
Q6 What rendering mechanism does React Native use?
WebView rendering
Hybrid rendering
Native components rendering
Server-side rendering
Q7
Q7 Which thread does React Native use to execute JavaScript code?
Main UI thread
Background worker thread
JavaScript thread
Rendering thread
Q8
Q8 Which component is used for displaying text in React Native?
<Text />
<View />
<Button />
<Input />
Q9
Q9 Which command is used to create a new React Native project?
npx create-react-native-app myApp
npx react-native init myApp
npm install -g react-native-cli
react-native start myApp
Q10
Q10 Which programming language is primarily used in React Native?
Java
Swift
JavaScript
Python
Q11
Q11 What is the purpose of React Native's Virtual DOM?
Improve UI responsiveness
Reduce the need for JavaScript
Provide native performance
Maintain a consistent UI state
Q12
Q12 What is the primary role of the Metro Bundler in React Native?
Handle API calls
Bundle JavaScript code
Optimize native performance
Manage Redux state
Q13
Q13 What are the two main threads in a React Native application?
UI thread and Network thread
JavaScript thread and UI thread
Java thread and Rendering thread
Database thread and UI thread
Q14
Q14 What does the React Native Bridge do?
Connects JavaScript code with native modules
Enhances CSS support in React Native
Improves state management
Optimizes animation performance
Q15
Q15 Why does React Native use a bridge between JavaScript and Native code?
To allow direct access to the file system
To enable JavaScript to communicate with native components
To execute SQL queries
To handle user authentication
Q16
Q16 How does React Native achieve cross-platform development?
By compiling JavaScript into native code
By using native components wrapped in JavaScript
By using WebView-based rendering
By converting JavaScript into Swift/Kotlin
Q17
Q17 Which of the following is NOT a core component in React Native?
<View />
<Text />
<Fragment />
<Image />
Q18
Q18 Which core component is used to create a view container?
<Container />
<Div />
<View />
<Span />
Q19
Q19 What should you do if your React Native app is not loading and shows a red error screen?
Restart Metro Bundler
Delete node_modules and reinstall dependencies
Check syntax errors
All of the above
Q20
Q20 What does JSX stand for in React Native?
JavaScript XML
Java Syntax Extension
JavaScript Extension
JavaScript Execution
Q21
Q21 What is the purpose of JSX in React Native?
To define UI components using a syntax similar to HTML
To write backend logic
To define styles in JavaScript
To compile JavaScript into native code
Q22
Q22 Which of the following is true about JSX?
JSX is optional in React Native
JSX must always be wrapped in a parent element
JSX allows writing raw JavaScript code inside JSX without curly braces
JSX is identical to HTML
Q23
Q23 How do you insert JavaScript expressions inside JSX?
By using square brackets [ ]
By using double quotes ""
By using curly braces {}
By using angle brackets <>
Q24
Q24 What is the difference between a functional and class component in React Native?
Functional components use hooks, while class components use lifecycle methods
Functional components require the use of this keyword
Class components are preferred over functional components
There is no difference
Q25
Q25 Which of the following is NOT a correct way to define a React Native component?
function MyComponent() { return <Text>Hello</Text>; }
const MyComponent = () => <Text>Hello</Text>;
class MyComponent extends Component { render() { return <Text>Hello</Text>; }}
const MyComponent = new Component({ render() { return <Text>Hello</Text>; } })
Q26
Q26 What is the correct way to return multiple elements in JSX without an extra wrapping element?
Use an empty <View />
Wrap them in a <div>
Use React.Fragment or <>
Return multiple elements directly
Q27
Q27 What will be the output of the following JSX code?
10 + 5
{10 + 5}
15
Error
Q28
Q28 What will happen if you return multiple elements in JSX without wrapping them inside a parent element?
The app will crash
Only the first element will be rendered
React Native will automatically wrap them in a
It will throw a syntax error
Q29
Q29 What is the common reason for the error "Unexpected token <" when using JSX?
Missing import statement for React
Incorrect file extension
Using JSX inside a function
Forgetting to wrap JSX in a return statement
Q30
Q30 Why is the error "Cannot read property 'state' of undefined" commonly seen in class components?
Forgetting to use this before state
Incorrect state initialization
State cannot be used in class components
Using arrow functions inside class components

