Loading

Quipoin Menu

Learn • Practice • Grow

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

Q1.

Which of the following is a platform to deploy React apps?
A. GitHub Pages
B. Vercel
C. Netlify
D. All of the above
Direction: Choose the correct option

Q2.

Before deploying, what must you do?
A. Run npm start
B. Run npm run build and deploy the build folder
C. Run tests
D. Push to GitHub
Direction: Choose the correct option

Q3.

If your app uses client-side routing, what server configuration might be needed?
A. Serve static files only
B. No special config
C. Redirect all requests to index.html
D. Enable HTTPS
Direction: Choose the correct option

Q4.

What is the purpose of the homepage field in package.json?
A. To set the app title
B. To configure routing
C. To define the domain
D. To specify the base URL for the app when deployed to a subdirectory
Direction: Choose the correct option

Q5.

Which command deploys to GitHub Pages using gh-pages package?
A. npm publish
B. npm run gh-pages
C. npm run deploy (after configuring)
D. git push