Loading

Quipoin Menu

Learn • Practice • Grow

Direction: Choose the correct option

Q1.

What command builds an Angular project for deployment?
A. ng build --prod
B. ng compile
C. ng deploy
D. ng serve
Direction: Choose the correct option

Q2.

Where are the production build files generated?
A. build/ folder
B. out/ folder
C. public/ folder
D. dist/ folder
Direction: Choose the correct option

Q3.

What is the purpose of the `--base-href` flag?
A. Sets the base font size
B. Sets the base URL for the application
C. Sets the base href for routing
D. Sets the base directory
Direction: Choose the correct option

Q4.

What server configuration is needed for Angular SPA?
A. Configure database
B. Enable PHP
C. Redirect all routes to index.html
D. Serve only index.html
Direction: Choose the correct option

Q5.

Which platforms can host Angular apps?
A. Only Node.js servers
B. Only Apache
C. Only IIS
D. Netlify, Vercel, Firebase, GitHub Pages
Direction: Choose the correct option

Q6.

What is the purpose of the `--output-path` flag?
A. Defines output location
B. Specifies output path
C. Sets output folder
D. Specifies a custom output directory for build files
Direction: Choose the correct option

Q7.

What is the `deployUrl` option used for?
A. Deploy URL
B. Specifies the URL where assets are deployed (deprecated)
C. Configures deployment
D. Sets deploy path
Direction: Choose the correct option

Q8.

How do you deploy to GitHub Pages?
A. Use `angular-cli-ghpages` or manually copy to gh-pages branch
B. Use `git push`
C. Use `ng gh-pages`
D. Use `ng deploy`
Direction: Choose the correct option

Q9.

What is the purpose of `APP_BASE_HREF` token?
A. To set app base
B. To programmatically set the base href for routing
C. To configure base
D. To set base URL
Direction: Choose the correct option

Q10.

How do you handle environment-specific configuration in deployment?
A. Using config files
B. Using runtime variables
C. Using `.env` files
D. Using environment.ts files and replacing them during build