Loading

Quipoin Menu

Learn • Practice • Grow

react / Building React App
mcq
Direction: Choose the correct option

Q1.

Which command builds a React app for production?
A. npm run dev
B. npm build
C. npm run build
D. npm start
Direction: Choose the correct option

Q2.

Where is the production build output placed?
A. build/ folder
B. dist/ folder
C. public/ folder
D. out/ folder
Direction: Choose the correct option

Q3.

What is the purpose of the build step?
A. To run tests
B. To install dependencies
C. To start the dev server
D. To minify and optimize code for production
Direction: Choose the correct option

Q4.

Which environment variable can be used to set the public URL in production?
A. REACT_APP_PUBLIC_URL
B. HOST
C. PUBLIC_URL
D. BASE_URL
Direction: Choose the correct option

Q5.

What is tree shaking?
A. Removing unused code from the final bundle
B. Shaking the DOM tree
C. A performance optimization
D. A build tool