11.) Which file contains Angular environment configurations?
A) angular.json
B) environment.ts
C) config.json
D) package.json
12.) Which Angular feature helps reduce the initial JavaScript bundle size?
A) Minification
B) Webpack
C) Service Workers
D) Lazy Loading
13.) What is the best way to handle errors in a deployed Angular app?
A) Logging errors in the console
B) Using a global error handler
C) Disabling error messages
D) Restarting the server
14.) What does ng lint do in Angular?
A) Deploys the application
B) Fixes TypeScript errors
C) Checks code for best practices
D) Tests application performance
15.) What is PurgeCSS used for in Angular?
A) Debugging
B) Removing unused CSS
C) Optimizing JavaScript
D) Improving accessibility
16.) How can Angular optimize images for deployment?
A) Using WebP format
B) Compressing images
C) Lazy loading images
D) All of the above
17.) What is the purpose of Source Maps in Angular?
A) Debugging production code
B) Improving performance
C) Reducing bundle size
D) Enabling offline support
18.) Which Angular directive helps improve security?
A) ngIf
B) ngClass
C) ngSanitize
D) ngModel
19.) Which command updates Angular dependencies?
A) ng update
B) npm install
C) ng upgrade
D) ng refresh
20.) What is an important step before deploying an Angular app?
A) Running tests
B) Checking performance
C) Optimizing assets
D) All of the above
Related