WorksheetsReact - Day 9
Total questions: 30
Worksheet time: 17mins
What does 'my-app' refer to in the command
npx create-react-app my-app?
The directory that you want to create your app in
The type of app you want to create
The name you want to use for your new app
The name of an existing app
What command is used to start the React local development server?
npm run
npm start
npm run dev
npm build
React components must start with a capital letter
True
False
What are the two react component types?
Class Components,
Functional Components
Data Component,
Class Component
Functional components only
Mid Component, Last Component
What is the DOM?
Document Object Model
Data Object Model
Data Option Model
Documentation Object Model
React.Js is a __________?
Framework
Library
None of these.
React is for building _________
Connectivity
User Interface
Database
Which is the correct syntax?
onclick
Onclick
onClick
OnClick
What is React.Js used for?
Server-Side
Client-Side
For Both
Is React.JS is paid?
Yes
No
Everything in React is a _____________
Module
Component
Package
Class
What is ReactJS?
Server-side Framework
User-interface framework
A Library for building interaction interfaces
None of the Above
How do you access a function fetch() from a h1 element in JSX?
<h1>{fetch()}</h1>
<h1>${fetch()}</h1>
<h1>{fetch}</h1>
<h1>${fetch}</h1>
HTML coding involves using ____________ to create webpages.
Tabs
Tags
Labels
Quotes
Latest version of HTML
HTML
5
HTML
6
HTML
3
Latest version of CSS
CSS
3
CSS
4
CSS
5
Best JS framework in 2020
ReactJS
Angular
JS
React is a
Full-stack framework
Front-end library
CSS framework
Which programming language is the Google V8 Engine designed for?
Java
JavaScript
Python
R
Which of the following command is used to run a node.js program?
node run main.js
node start main.js
start main.js
node main.js
What command is used to check the installed version of Node.js?
node -version
node -v
npm -v
npm -version
Which command is used to install create-react-app globally?
npm install create-react-app
npm install -g create-react-app
npm create-react-app
npx create-react-app
How do you create a new React app named my-app using create-react-app?
npm create-react-app my-app
npx create-react-app my-app
npm start my-app
create-react-app my-app
Which command navigates you into the newly created React app directory?
cd my-app
dir my-app
open my-app
move my-app
What command do you use to start the development server in a React app?
npm run
npm build
npm start
npm develop
Which file is the entry point for a React application?
index.html
App.js
index.js
package.json
What is the purpose of node_modules folder in a React project?
To store the project's source code
To store the React component files
To store the installed dependencies and packages
To store static assets like images and CSS files
What is React.js?
