wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

React - Day 9

Total questions: 30

Worksheet time: 17mins

Name
Class
Date
1.

What does 'my-app' refer to in the command

npx create-react-app my-app?

a)

The directory that you want to create your app in

b)

The type of app you want to create

c)

The name you want to use for your new app

d)

The name of an existing app

2.

What command is used to start the React local development server?

a)

npm run

b)

npm start

c)

npm run dev

d)

npm build

3.

React components must start with a capital letter

a)

True

b)

False

4.
React.js Covers only the view layer of the app.
a)
Yes
b)
No
5.
Who Develop React.js?
a)
Apple
b)
Facebook
c)
Twitter
d)
Google
6.

What are the two react component types?

a)

Class Components,

Functional Components

b)

Data Component,

Class Component

c)

Functional components only

d)

Mid Component, Last Component

7.

What is the DOM?

a)

Document Object Model

b)

Data Object Model

c)

Data Option Model

d)

Documentation Object Model

8.

React.Js is a __________?

a)

Framework

b)

Library

c)

None of these.

9.

React is for building _________

a)

Connectivity

b)

User Interface

c)

Database

10.

Which is the correct syntax?

a)

onclick

b)

Onclick

c)

onClick

d)

OnClick

11.

What is React.Js used for?

a)

Server-Side

b)

Client-Side

c)

For Both

12.

Is React.JS is paid?

a)

Yes

b)

No

13.

Everything in React is a _____________

a)

Module

b)

Component

c)

Package

d)

Class

14.

What is ReactJS?

a)

Server-side Framework

b)

User-interface framework

c)

A Library for building interaction interfaces

d)

None of the Above

15.

How do you access a function fetch() from a h1 element in JSX?

a)

<h1>{fetch()}</h1> 

b)

<h1>${fetch()}</h1> 

c)

<h1>{fetch}</h1> 

d)

<h1>${fetch}</h1>

16.

HTML coding involves using ____________ to create webpages.

a)

Tabs

b)

Tags

c)

Labels

d)

Quotes

17.

Latest version of HTML

a)

HTML

5

b)

HTML

6

c)

HTML

3

18.

Latest version of CSS

a)

CSS

3

b)

CSS

4

c)

CSS

5

19.

Best JS framework in 2020

a)

ReactJS

b)

Angular

JS

20.

React is a

a)

Full-stack framework

b)

Front-end library

c)

CSS framework

21.

Which programming language is the Google V8 Engine designed for?

a)

Java

b)

JavaScript

c)

Python

d)

R

22.

Which of the following command is used to run a node.js program?

a)

node run main.js

b)

node start main.js

c)

start main.js

d)

node main.js

23.

What command is used to check the installed version of Node.js?

a)

node -version

b)

node -v

c)

npm -v

d)

npm -version

24.

Which command is used to install create-react-app globally?

a)

npm install create-react-app

b)

npm install -g create-react-app

c)

npm create-react-app

d)

npx create-react-app

25.

How do you create a new React app named my-app using create-react-app?

a)

npm create-react-app my-app

b)

npx create-react-app my-app

c)

npm start my-app

d)

create-react-app my-app

26.

Which command navigates you into the newly created React app directory?

a)

cd my-app

b)

dir my-app

c)

open my-app

d)

move my-app

27.

What command do you use to start the development server in a React app?

a)

npm run

b)

npm build

c)

npm start

d)

npm develop

28.

Which file is the entry point for a React application?

a)

index.html

b)

App.js

c)

index.js

d)

package.json

29.

What is the purpose of node_modules folder in a React project?

a)

To store the project's source code

b)

To store the React component files

c)

To store the installed dependencies and packages

d)

To store static assets like images and CSS files

30.

What is React.js?

2 lines