Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

React Native

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is React Native?

a)

JavaScript library

b)

JavaScript framework

c)

Programming language

d)

Neither of the above

2.

React Native has a set components for:

a)

IOS platform

b)

Android platform

c)

Both IOS and Android platform

d)

neither of the above

3.

What is props?

a)

which used for rendering dynamic changes whithin component

b)

import component from one another component like react-native in app.js, custom component

c)

which stands for properties and is being used for passing data from one component to another

d)

neither of the above

4.

What is state?

a)

Align children within the main axis of our container

b)

which used for rendering dynamic changes within component

c)

which stands for properties and is being used for passing data from one component to another

d)

neither of the above

5.

what is Class components?

a)

used as container components to handle state management and wrap child components

b)

which are just used for display purposes - these components call functions from parent components to handle user interactions or state updates

c)

are the building blocks of any React app and a typical React app will have many of these

d)

neither of above

6.

What is hook?

a)

helps you to create lifecycle

b)

helps you to customize the component

c)

helps you use state and lifecycle methods behavior in functional React components

d)

neither of the above

7.

Command to create new react native app project called Demo

(a)  

8.

Command to run project:

(a)  

9.

Which component is for inputting text into the app via a keyboard

(a)  

10.

What is React JS?

a)

 A JavaScript library for building user interfaces

b)

A server-side framework for building web applications

c)

A programming language for building web applications

d)

A front-end framework for building mobile applications

11.

What is the difference between state and props in React JS?

a)

State is data that can change over time, whereas props are data that are passed down from a parent component to a child component and are immutable.

b)

 Props are data that can change over time, whereas state is data that are passed down from a parent component to a child component and are immutable

c)

State and props are the same thing

d)

State and props are not used in React JS

12.

Explain the difference between React and React Native.

a)

React is for web development, while React Native is for mobile app development.

b)

React is only for iOS development, while React Native is only for Android development.

c)

React and React Native are the same thing.

d)

React is for mobile app development, while React Native is for web development.

13.

What are the basic building blocks of a React Native app?

a)

Components

b)

HTML elements

c)

Java classes

d)

Swift functions

14.

Explain the concept of props in React Native.

a)

Props in React Native are used to pass data from a parent component to a child component.

b)

Props in React Native are used to style components

c)

Props in React Native are only used in functional components

d)

Props in React Native are used to pass data from a child component to a parent component

15.

What is the significance of 'setState' method in React Native?

a)

The 'setState' method is used for defining navigation routes in React Native.

b)

The 'setState' method is essential for updating the state of a component in React Native.

c)

The 'setState' method is used for styling components in React Native.

d)

The 'setState' method is responsible for handling user input in React Native.